@@ -209,7 +209,6 @@ impl<'tcx, Prov: Provenance> LocalState<'tcx, Prov> {
209209pub struct FrameInfo < ' tcx > {
210210 pub instance : ty:: Instance < ' tcx > ,
211211 pub span : Span ,
212- pub is_last : bool ,
213212}
214213
215214// FIXME: only used by miri, should be removed once translatable.
@@ -237,20 +236,14 @@ impl<'tcx> FrameInfo<'tcx> {
237236 span,
238237 instance : String :: new ( ) ,
239238 times : 0 ,
240- is_last : self . is_last ,
239+ is_last : false ,
241240 }
242241 } else {
243242 let instance = format ! ( "{}" , self . instance) ;
244243 // Note: this triggers a `must_produce_diag` state, which means that if we ever get
245244 // here we must emit a diagnostic. We should never display a `FrameInfo` unless we
246245 // actually want to emit a warning or error to the user.
247- errors:: FrameNote {
248- where_ : "instance" ,
249- span,
250- instance,
251- times : 0 ,
252- is_last : self . is_last ,
253- }
246+ errors:: FrameNote { where_ : "instance" , span, instance, times : 0 , is_last : false }
254247 }
255248 }
256249}
@@ -335,15 +328,15 @@ impl<'tcx, Prov: Provenance, Extra> Frame<'tcx, Prov, Extra> {
335328 let mir:: SourceInfo { mut span, scope } = * frame. body . source_info ( loc) ;
336329 let mut scope_data = & frame. body . source_scopes [ scope] ;
337330 while let Some ( ( instance, call_span) ) = scope_data. inlined {
338- frames. push ( FrameInfo { span, instance, is_last : false } ) ;
331+ frames. push ( FrameInfo { span, instance } ) ;
339332 span = call_span;
340333 scope_data = & frame. body . source_scopes [ scope_data. parent_scope . unwrap ( ) ] ;
341334 }
342335 span
343336 }
344337 Right ( span) => span,
345338 } ;
346- frames. push ( FrameInfo { span, instance : frame. instance , is_last : false } ) ;
339+ frames. push ( FrameInfo { span, instance : frame. instance } ) ;
347340 }
348341 trace ! ( "generate stacktrace: {:#?}" , frames) ;
349342 frames
0 commit comments