Skip to content

Commit df175ea

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 4ddfaf3 + 53412ab commit df175ea

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/eval_context.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,11 +789,15 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
789789
self.write_value(val, dest, dest_ty)?;
790790
}
791791

792-
Box(ty) => {
792+
NullaryOp(mir::NullOp::Box, ty) => {
793793
let ptr = self.alloc_ptr(ty)?;
794794
self.write_primval(dest, PrimVal::Ptr(ptr), dest_ty)?;
795795
}
796796

797+
NullaryOp(mir::NullOp::SizeOf, _ty) => {
798+
unimplemented!()
799+
}
800+
797801
Cast(kind, ref operand, cast_ty) => {
798802
debug_assert_eq!(self.monomorphize(cast_ty, self.substs()), dest_ty);
799803
use rustc::mir::CastKind::*;

tests/run-pass/non_capture_closure_to_fn_ptr.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(closure_to_fn_coercion)]
2-
31
// allow(const_err) to work around a bug in warnings
42
#[allow(const_err)]
53
static FOO: fn() = || { assert_ne!(42, 43) };

0 commit comments

Comments
 (0)