@@ -209,7 +209,6 @@ impl<'tcx, Prov: Provenance> LocalState<'tcx, Prov> {
209
209
pub struct FrameInfo < ' tcx > {
210
210
pub instance : ty:: Instance < ' tcx > ,
211
211
pub span : Span ,
212
- pub is_last : bool ,
213
212
}
214
213
215
214
// FIXME: only used by miri, should be removed once translatable.
@@ -237,20 +236,14 @@ impl<'tcx> FrameInfo<'tcx> {
237
236
span,
238
237
instance : String :: new ( ) ,
239
238
times : 0 ,
240
- is_last : self . is_last ,
239
+ is_last : false ,
241
240
}
242
241
} else {
243
242
let instance = format ! ( "{}" , self . instance) ;
244
243
// Note: this triggers a `must_produce_diag` state, which means that if we ever get
245
244
// here we must emit a diagnostic. We should never display a `FrameInfo` unless we
246
245
// 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 }
254
247
}
255
248
}
256
249
}
@@ -335,15 +328,15 @@ impl<'tcx, Prov: Provenance, Extra> Frame<'tcx, Prov, Extra> {
335
328
let mir:: SourceInfo { mut span, scope } = * frame. body . source_info ( loc) ;
336
329
let mut scope_data = & frame. body . source_scopes [ scope] ;
337
330
while let Some ( ( instance, call_span) ) = scope_data. inlined {
338
- frames. push ( FrameInfo { span, instance, is_last : false } ) ;
331
+ frames. push ( FrameInfo { span, instance } ) ;
339
332
span = call_span;
340
333
scope_data = & frame. body . source_scopes [ scope_data. parent_scope . unwrap ( ) ] ;
341
334
}
342
335
span
343
336
}
344
337
Right ( span) => span,
345
338
} ;
346
- frames. push ( FrameInfo { span, instance : frame. instance , is_last : false } ) ;
339
+ frames. push ( FrameInfo { span, instance : frame. instance } ) ;
347
340
}
348
341
trace ! ( "generate stacktrace: {:#?}" , frames) ;
349
342
frames
0 commit comments