@@ -17,7 +17,7 @@ use rustc_middle::ty::layout::{self, Align, HasDataLayout, LayoutOf, Size, TyAnd
17
17
use rustc_middle:: ty:: query:: TyCtxtAt ;
18
18
use rustc_middle:: ty:: subst:: SubstsRef ;
19
19
use rustc_middle:: ty:: { self , Ty , TyCtxt , TypeFoldable } ;
20
- use rustc_span:: source_map:: { Span , DUMMY_SP } ;
20
+ use rustc_span:: source_map:: DUMMY_SP ;
21
21
22
22
use super :: {
23
23
Immediate , MPlaceTy , Machine , MemPlace , MemPlaceMeta , Memory , OpTy , Operand , Place , PlaceTy ,
@@ -853,7 +853,7 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
853
853
}
854
854
}
855
855
856
- pub fn generate_stacktrace ( & self , explicit_span : Option < Span > ) -> Vec < FrameInfo < ' tcx > > {
856
+ pub fn generate_stacktrace ( & self ) -> Vec < FrameInfo < ' tcx > > {
857
857
let mut frames = Vec :: new ( ) ;
858
858
for frame in self . stack ( ) . iter ( ) . rev ( ) {
859
859
let source_info = frame. current_source_info ( ) ;
@@ -867,7 +867,7 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
867
867
868
868
frames. push ( FrameInfo { span, instance : frame. instance , lint_root } ) ;
869
869
}
870
- trace ! ( "generate stacktrace: {:#?}, {:?} " , frames, explicit_span ) ;
870
+ trace ! ( "generate stacktrace: {:#?}" , frames) ;
871
871
frames
872
872
}
873
873
}
0 commit comments