File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -281,7 +281,7 @@ pub fn from_fn_attrs(
281
281
//
282
282
// However, in the long term we should either:
283
283
// - fold this into final else (i.e. stop inspecting `id`)
284
- // - or better still: whole-heartedly adopt Rust PR #63909.
284
+ // - adopt Rust PR #63909.
285
285
//
286
286
// see also Rust RFC 2753.
287
287
@@ -294,7 +294,7 @@ pub fn from_fn_attrs(
294
294
} else {
295
295
// Anything else is either:
296
296
//
297
- // 1. A foreign item (like `extern "C" { fn foo(); }`), or
297
+ // 1. A foreign item using a non-Rust ABI (like `extern "C" { fn foo(); }`), or
298
298
//
299
299
// 2. A Rust item using a non-Rust ABI (like `extern "C" fn foo() { ... }`).
300
300
//
Original file line number Diff line number Diff line change 1
1
// run-pass
2
2
3
3
// rust-lang/rust#64655: with panic=unwind, a panic from a subroutine
4
- // should still run desstructors as it unwindws the stack. However,
4
+ // should still run destructors as it unwinds the stack. However,
5
5
// bugs with how the nounwind LLVM attribute was applied led to this
6
6
// simple case being mishandled *if* you had fat LTO turned on.
7
7
@@ -54,7 +54,7 @@ fn main() {
54
54
55
55
let wait = handle. join ( ) ;
56
56
57
- // reinstate handler to ease observation of assertion failures.
57
+ // Reinstate handler to ease observation of assertion failures.
58
58
std:: panic:: set_hook ( old_hook) ;
59
59
60
60
assert ! ( wait. is_err( ) ) ;
Original file line number Diff line number Diff line change 1
1
// run-pass
2
2
3
3
// rust-lang/rust#64655: with panic=unwind, a panic from a subroutine
4
- // should still run desstructors as it unwinds the stack. However,
4
+ // should still run destructors as it unwinds the stack. However,
5
5
// bugs with how the nounwind LLVM attribute was applied led to this
6
6
// simple case being mishandled *if* you had optimization *and* fat
7
7
// LTO turned on.
13
13
// This test takes the code from the above issue and adapts it to
14
14
// better fit our test infrastructure:
15
15
//
16
- // * Instead of relying on println! to observe whether the destructor
16
+ // * Instead of relying on ` println!` to observe whether the destructor
17
17
// is run, we instead run the code in a spawned thread and
18
18
// communicate the destructor's operation via a synchronous atomic
19
19
// in static memory.
You can’t perform that action at this time.
0 commit comments