Skip to content

Commit fc44de2

Browse files
committed
document more things as needing to stay in sync
1 parent 74a1f25 commit fc44de2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/panicking.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ fn panic_misaligned_pointer_dereference(required: usize, found: usize) -> ! {
188188
#[lang = "panic_cannot_unwind"] // needed by codegen for panic in nounwind function
189189
#[rustc_nounwind]
190190
fn panic_cannot_unwind() -> ! {
191+
// Keep the text in sync with `UnwindTerminateReason::as_str` in `rustc_middle`.
191192
panic_nounwind("panic in a function that cannot unwind")
192193
}
193194

@@ -203,6 +204,7 @@ fn panic_cannot_unwind() -> ! {
203204
#[lang = "panic_in_cleanup"] // needed by codegen for panic in nounwind function
204205
#[rustc_nounwind]
205206
fn panic_in_cleanup() -> ! {
207+
// Keep the text in sync with `UnwindTerminateReason::as_str` in `rustc_middle`.
206208
panic_nounwind("panic in a destructor during cleanup")
207209
}
208210

0 commit comments

Comments
 (0)