Skip to content

Commit 53412ab

Browse files
authored
Merge pull request rust-lang#172 from dwrensha/rustup
update for latest nightly rustc
2 parents bea6d83 + 6649522 commit 53412ab

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/eval_context.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -788,11 +788,15 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
788788
self.write_value(val, dest, dest_ty)?;
789789
}
790790

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

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

tests/run-pass/non_capture_closure_to_fn_ptr.rs

-2
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)