mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-03 01:16:14 +03:00
Make mir::Rvalue handling exhaustive (some still unimplemented).
This commit is contained in:
+4
-1
@@ -540,6 +540,8 @@ fn eval_assignment(&mut self, lvalue: &mir::Lvalue<'tcx>, rvalue: &mir::Rvalue<'
|
||||
}
|
||||
}
|
||||
|
||||
Repeat(_, _) => unimplemented!(),
|
||||
|
||||
Len(ref lvalue) => {
|
||||
let src = try!(self.eval_lvalue(lvalue));
|
||||
let ty = self.lvalue_ty(lvalue);
|
||||
@@ -604,7 +606,8 @@ fn eval_assignment(&mut self, lvalue: &mir::Lvalue<'tcx>, rvalue: &mir::Rvalue<'
|
||||
}
|
||||
}
|
||||
|
||||
ref r => panic!("can't handle rvalue: {:?}", r),
|
||||
Slice { .. } => unimplemented!(),
|
||||
InlineAsm(_) => unimplemented!(),
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user