Merge pull request #172 from dwrensha/rustup
update for latest nightly rustc
This commit is contained in:
commit
53412abe76
2 changed files with 5 additions and 3 deletions
|
|
@ -788,11 +788,15 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
|
|||
self.write_value(val, dest, dest_ty)?;
|
||||
}
|
||||
|
||||
Box(ty) => {
|
||||
NullaryOp(mir::NullOp::Box, ty) => {
|
||||
let ptr = self.alloc_ptr(ty)?;
|
||||
self.write_primval(dest, PrimVal::Ptr(ptr), dest_ty)?;
|
||||
}
|
||||
|
||||
NullaryOp(mir::NullOp::SizeOf, _ty) => {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
Cast(kind, ref operand, cast_ty) => {
|
||||
debug_assert_eq!(self.monomorphize(cast_ty, self.substs()), dest_ty);
|
||||
use rustc::mir::CastKind::*;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
#![feature(closure_to_fn_coercion)]
|
||||
|
||||
// allow(const_err) to work around a bug in warnings
|
||||
#[allow(const_err)]
|
||||
static FOO: fn() = || { assert_ne!(42, 43) };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue