@@ -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:: { Span , DUMMY_SP } ;
20+ use rustc_span:: source_map:: DUMMY_SP ;
2121
2222use super :: {
2323 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> {
853853 }
854854 }
855855
856- pub fn generate_stacktrace ( & self , explicit_span : Option < Span > ) -> Vec < FrameInfo < ' tcx > > {
856+ pub fn generate_stacktrace ( & self ) -> Vec < FrameInfo < ' tcx > > {
857857 let mut frames = Vec :: new ( ) ;
858858 for frame in self . stack ( ) . iter ( ) . rev ( ) {
859859 let source_info = frame. current_source_info ( ) ;
@@ -867,7 +867,7 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
867867
868868 frames. push ( FrameInfo { span, instance : frame. instance , lint_root } ) ;
869869 }
870- trace ! ( "generate stacktrace: {:#?}, {:?} " , frames, explicit_span ) ;
870+ trace ! ( "generate stacktrace: {:#?}" , frames) ;
871871 frames
872872 }
873873}
0 commit comments