From d8d405e85b46ffa26ac2f243b04af9d55338756e Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Sun, 9 Jun 2019 15:16:45 +0200 Subject: [PATCH] Rustup to rustc 1.37.0-nightly (991c719a1 2019-06-08) --- src/constant.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/constant.rs b/src/constant.rs index e9ea58ed1b1..191f4833919 100644 --- a/src/constant.rs +++ b/src/constant.rs @@ -1,7 +1,7 @@ use std::borrow::Cow; use rustc::mir::interpret::{ - read_target_uint, AllocId, GlobalAlloc, Allocation, ConstValue, EvalResult, GlobalId, Scalar, + read_target_uint, AllocId, GlobalAlloc, Allocation, ConstValue, InterpResult, GlobalId, Scalar, }; use rustc::ty::Const; use rustc_mir::interpret::{ @@ -140,7 +140,7 @@ fn trans_const_place<'a, 'tcx: 'a>( const_: Const<'tcx>, ) -> CPlace<'tcx> { // Adapted from https://github.com/rust-lang/rust/pull/53671/files#diff-e0b58bb6712edaa8595ad7237542c958L551 - let result = || -> EvalResult<'tcx, &'tcx Allocation> { + let result = || -> InterpResult<'tcx, &'tcx Allocation> { let mut ecx = InterpretCx::new( fx.tcx.at(DUMMY_SP), ty::ParamEnv::reveal_all(), @@ -349,7 +349,7 @@ fn enforce_validity(_: &InterpretCx<'a, 'mir, 'tcx, Self>) -> bool { false } - fn before_terminator(_: &mut InterpretCx<'a, 'mir, 'tcx, Self>) -> EvalResult<'tcx> { + fn before_terminator(_: &mut InterpretCx<'a, 'mir, 'tcx, Self>) -> InterpResult<'tcx> { panic!(); } @@ -359,7 +359,7 @@ fn find_fn( _: &[OpTy<'tcx>], _: Option>, _: Option, - ) -> EvalResult<'tcx, Option<&'mir Body<'tcx>>> { + ) -> InterpResult<'tcx, Option<&'mir Body<'tcx>>> { panic!(); } @@ -368,14 +368,14 @@ fn call_intrinsic( _: Instance<'tcx>, _: &[OpTy<'tcx>], _: PlaceTy<'tcx>, - ) -> EvalResult<'tcx> { + ) -> InterpResult<'tcx> { panic!(); } fn find_foreign_static( _: DefId, _: ::rustc::ty::query::TyCtxtAt<'a, 'tcx, 'tcx>, - ) -> EvalResult<'tcx, Cow<'tcx, Allocation>> { + ) -> InterpResult<'tcx, Cow<'tcx, Allocation>> { panic!(); } @@ -384,11 +384,11 @@ fn ptr_op( _: mir::BinOp, _: ImmTy<'tcx>, _: ImmTy<'tcx>, - ) -> EvalResult<'tcx, (Scalar, bool)> { + ) -> InterpResult<'tcx, (Scalar, bool)> { panic!(); } - fn box_alloc(_: &mut InterpretCx<'a, 'mir, 'tcx, Self>, _: PlaceTy<'tcx>) -> EvalResult<'tcx> { + fn box_alloc(_: &mut InterpretCx<'a, 'mir, 'tcx, Self>, _: PlaceTy<'tcx>) -> InterpResult<'tcx> { panic!(); } @@ -405,11 +405,11 @@ fn tag_static_base_pointer(_: AllocId, _: &()) -> Self::PointerTag { () } - fn stack_push(_: &mut InterpretCx<'a, 'mir, 'tcx, Self>) -> EvalResult<'tcx> { + fn stack_push(_: &mut InterpretCx<'a, 'mir, 'tcx, Self>) -> InterpResult<'tcx> { Ok(()) } - fn stack_pop(_: &mut InterpretCx<'a, 'mir, 'tcx, Self>, _: ()) -> EvalResult<'tcx> { + fn stack_pop(_: &mut InterpretCx<'a, 'mir, 'tcx, Self>, _: ()) -> InterpResult<'tcx> { Ok(()) } } -- 2.44.0