@@ -4,7 +4,6 @@ use std::convert::TryFrom;
44use rustc_middle:: ty:: layout:: { self , LayoutOf , TyAndLayout } ;
55use rustc_middle:: ty:: Instance ;
66use rustc_middle:: { mir, ty} ;
7- use rustc_span:: source_map:: Span ;
87use rustc_target:: spec:: abi:: Abi ;
98
109use super :: {
@@ -71,14 +70,7 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
7170 Some ( ( dest, ret) ) => Some ( ( self . eval_place ( dest) ?, * ret) ) ,
7271 None => None ,
7372 } ;
74- self . eval_fn_call (
75- fn_val,
76- terminator. source_info . span ,
77- abi,
78- & args[ ..] ,
79- ret,
80- * cleanup,
81- ) ?;
73+ self . eval_fn_call ( fn_val, abi, & args[ ..] , ret, * cleanup) ?;
8274 }
8375
8476 Drop { ref location, target, unwind } => {
@@ -88,7 +80,7 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
8880 trace ! ( "TerminatorKind::drop: {:?}, type {}" , location, ty) ;
8981
9082 let instance = Instance :: resolve_drop_in_place ( * self . tcx , ty) ;
91- self . drop_in_place ( place, instance, terminator . source_info . span , target, unwind) ?;
83+ self . drop_in_place ( place, instance, target, unwind) ?;
9284 }
9385
9486 Assert { ref cond, expected, ref msg, target, cleanup } => {
@@ -196,7 +188,6 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
196188 fn eval_fn_call (
197189 & mut self ,
198190 fn_val : FnVal < ' tcx , M :: ExtraFnVal > ,
199- span : Span ,
200191 caller_abi : Abi ,
201192 args : & [ OpTy < ' tcx , M :: PointerTag > ] ,
202193 ret : Option < ( PlaceTy < ' tcx , M :: PointerTag > , mir:: BasicBlock ) > ,
@@ -242,7 +233,7 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
242233 match instance. def {
243234 ty:: InstanceDef :: Intrinsic ( ..) => {
244235 assert ! ( caller_abi == Abi :: RustIntrinsic || caller_abi == Abi :: PlatformIntrinsic ) ;
245- M :: call_intrinsic ( self , span , instance, args, ret, unwind)
236+ M :: call_intrinsic ( self , instance, args, ret, unwind)
246237 }
247238 ty:: InstanceDef :: VtableShim ( ..)
248239 | ty:: InstanceDef :: ReifyShim ( ..)
@@ -252,7 +243,7 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
252243 | ty:: InstanceDef :: CloneShim ( ..)
253244 | ty:: InstanceDef :: Item ( _) => {
254245 // We need MIR for this fn
255- let body = match M :: find_mir_or_eval_fn ( self , span , instance, args, ret, unwind) ? {
246+ let body = match M :: find_mir_or_eval_fn ( self , instance, args, ret, unwind) ? {
256247 Some ( body) => body,
257248 None => return Ok ( ( ) ) ,
258249 } ;
@@ -406,7 +397,7 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
406397 OpTy :: from ( ImmTy { layout : this_receiver_ptr, imm : receiver_place. ptr . into ( ) } ) ;
407398 trace ! ( "Patched self operand to {:#?}" , args[ 0 ] ) ;
408399 // recurse with concrete function
409- self . eval_fn_call ( drop_fn, span , caller_abi, & args, ret, unwind)
400+ self . eval_fn_call ( drop_fn, caller_abi, & args, ret, unwind)
410401 }
411402 }
412403 }
@@ -415,7 +406,6 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
415406 & mut self ,
416407 place : PlaceTy < ' tcx , M :: PointerTag > ,
417408 instance : ty:: Instance < ' tcx > ,
418- span : Span ,
419409 target : mir:: BasicBlock ,
420410 unwind : Option < mir:: BasicBlock > ,
421411 ) -> InterpResult < ' tcx > {
@@ -443,7 +433,6 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
443433
444434 self . eval_fn_call (
445435 FnVal :: Instance ( instance) ,
446- span,
447436 Abi :: Rust ,
448437 & [ arg. into ( ) ] ,
449438 Some ( ( dest. into ( ) , target) ) ,
0 commit comments