@@ -17,7 +17,7 @@ use rustc_middle::ty::layout::{self, Align, HasDataLayout, LayoutOf, Size, TyAnd
1717use rustc_middle:: ty:: query:: TyCtxtAt ;
1818use rustc_middle:: ty:: subst:: SubstsRef ;
1919use rustc_middle:: ty:: { self , Ty , TyCtxt , TypeFoldable } ;
20- use rustc_span:: source_map:: { self , Span , DUMMY_SP } ;
20+ use rustc_span:: source_map:: { Span , DUMMY_SP } ;
2121
2222use super :: {
2323 Immediate , MPlaceTy , Machine , MemPlace , MemPlaceMeta , Memory , OpTy , Operand , Place , PlaceTy ,
@@ -57,9 +57,6 @@ pub struct Frame<'mir, 'tcx, Tag = (), Extra = ()> {
5757 /// The def_id and substs of the current function.
5858 pub instance : ty:: Instance < ' tcx > ,
5959
60- /// The span of the call site.
61- pub span : source_map:: Span ,
62-
6360 /// Extra data for the machine.
6461 pub extra : Extra ,
6562
@@ -502,7 +499,6 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
502499 pub fn push_stack_frame (
503500 & mut self ,
504501 instance : ty:: Instance < ' tcx > ,
505- span : Span ,
506502 body : & ' mir mir:: Body < ' tcx > ,
507503 return_place : Option < PlaceTy < ' tcx , M :: PointerTag > > ,
508504 return_to_block : StackPopCleanup ,
@@ -522,7 +518,6 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
522518 // empty local array, we fill it in below, after we are inside the stack frame and
523519 // all methods actually know about the frame
524520 locals : IndexVec :: new ( ) ,
525- span,
526521 instance,
527522 stmt : 0 ,
528523 extra,
@@ -541,7 +536,6 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
541536 // statics and constants don't have `Storage*` statements, no need to look for them
542537 Some ( DefKind :: Static ) | Some ( DefKind :: Const ) | Some ( DefKind :: AssocConst ) => { }
543538 _ => {
544- trace ! ( "push_stack_frame: {:?}: num_bbs: {}" , span, body. basic_blocks( ) . len( ) ) ;
545539 for block in body. basic_blocks ( ) {
546540 for stmt in block. statements . iter ( ) {
547541 use rustc_middle:: mir:: StatementKind :: { StorageDead , StorageLive } ;
@@ -887,7 +881,6 @@ where
887881 fn hash_stable ( & self , hcx : & mut StableHashingContext < ' ctx > , hasher : & mut StableHasher ) {
888882 self . body . hash_stable ( hcx, hasher) ;
889883 self . instance . hash_stable ( hcx, hasher) ;
890- self . span . hash_stable ( hcx, hasher) ;
891884 self . return_to_block . hash_stable ( hcx, hasher) ;
892885 self . return_place . as_ref ( ) . map ( |r| & * * r) . hash_stable ( hcx, hasher) ;
893886 self . locals . hash_stable ( hcx, hasher) ;
0 commit comments