@@ -186,15 +186,15 @@ pub struct Thread<'tcx> {
186
186
/// The join status.
187
187
join_status : ThreadJoinStatus ,
188
188
189
- /// Stack of active panic payloads for the current thread. Used for storing
190
- /// the argument of the call to `miri_start_unwind` (the panic payload) when unwinding.
189
+ /// Stack of active unwind payloads for the current thread. Used for storing
190
+ /// the argument of the call to `miri_start_unwind` (the payload) when unwinding.
191
191
/// This is pointer-sized, and matches the `Payload` type in `src/libpanic_unwind/miri.rs`.
192
192
///
193
193
/// In real unwinding, the payload gets passed as an argument to the landing pad,
194
194
/// which then forwards it to 'Resume'. However this argument is implicit in MIR,
195
195
/// so we have to store it out-of-band. When there are multiple active unwinds,
196
196
/// the innermost one is always caught first, so we can store them as a stack.
197
- pub ( crate ) panic_payloads : Vec < ImmTy < ' tcx > > ,
197
+ pub ( crate ) unwind_payloads : Vec < ImmTy < ' tcx > > ,
198
198
199
199
/// Last OS error location in memory. It is a 32-bit integer.
200
200
pub ( crate ) last_error : Option < MPlaceTy < ' tcx > > ,
@@ -282,7 +282,7 @@ impl<'tcx> Thread<'tcx> {
282
282
stack : Vec :: new ( ) ,
283
283
top_user_relevant_frame : None ,
284
284
join_status : ThreadJoinStatus :: Joinable ,
285
- panic_payloads : Vec :: new ( ) ,
285
+ unwind_payloads : Vec :: new ( ) ,
286
286
last_error : None ,
287
287
on_stack_empty,
288
288
}
@@ -292,7 +292,7 @@ impl<'tcx> Thread<'tcx> {
292
292
impl VisitProvenance for Thread < ' _ > {
293
293
fn visit_provenance ( & self , visit : & mut VisitWith < ' _ > ) {
294
294
let Thread {
295
- panic_payloads : panic_payload,
295
+ unwind_payloads : panic_payload,
296
296
last_error,
297
297
stack,
298
298
top_user_relevant_frame : _,
0 commit comments