diff options
| author | Felix S Klock II <pnkfelix@pnkfx.org> | 2019-10-03 10:46:01 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-03 10:46:01 +0200 |
| commit | e7e6dec06a050c5bc4e7a93e6700fad28570779a (patch) | |
| tree | f09037ec3fc26922864d09328b2514049c7527f4 /src/test/ui/extern | |
| parent | 3adcc3ed222bdc6fc669281c42ef933aa3f6116b (diff) | |
| download | rust-e7e6dec06a050c5bc4e7a93e6700fad28570779a.tar.gz rust-e7e6dec06a050c5bc4e7a93e6700fad28570779a.zip | |
Apply suggestions from code review
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com> Co-Authored-By: Ralf Jung <post@ralfj.de>
Diffstat (limited to 'src/test/ui/extern')
| -rw-r--r-- | src/test/ui/extern/issue-64655-allow-unwind-when-calling-panic-directly.rs | 4 | ||||
| -rw-r--r-- | src/test/ui/extern/issue-64655-extern-rust-must-allow-unwind.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/extern/issue-64655-allow-unwind-when-calling-panic-directly.rs b/src/test/ui/extern/issue-64655-allow-unwind-when-calling-panic-directly.rs index ac715e4328f..63e373e5b59 100644 --- a/src/test/ui/extern/issue-64655-allow-unwind-when-calling-panic-directly.rs +++ b/src/test/ui/extern/issue-64655-allow-unwind-when-calling-panic-directly.rs @@ -1,7 +1,7 @@ // run-pass // rust-lang/rust#64655: with panic=unwind, a panic from a subroutine -// should still run desstructors as it unwindws the stack. However, +// should still run destructors as it unwinds the stack. However, // bugs with how the nounwind LLVM attribute was applied led to this // simple case being mishandled *if* you had fat LTO turned on. @@ -54,7 +54,7 @@ fn main() { let wait = handle.join(); - // reinstate handler to ease observation of assertion failures. + // Reinstate handler to ease observation of assertion failures. std::panic::set_hook(old_hook); assert!(wait.is_err()); diff --git a/src/test/ui/extern/issue-64655-extern-rust-must-allow-unwind.rs b/src/test/ui/extern/issue-64655-extern-rust-must-allow-unwind.rs index 18e441625ab..346d176ad3b 100644 --- a/src/test/ui/extern/issue-64655-extern-rust-must-allow-unwind.rs +++ b/src/test/ui/extern/issue-64655-extern-rust-must-allow-unwind.rs @@ -1,7 +1,7 @@ // run-pass // rust-lang/rust#64655: with panic=unwind, a panic from a subroutine -// should still run desstructors as it unwinds the stack. However, +// should still run destructors as it unwinds the stack. However, // bugs with how the nounwind LLVM attribute was applied led to this // simple case being mishandled *if* you had optimization *and* fat // LTO turned on. @@ -13,7 +13,7 @@ // This test takes the code from the above issue and adapts it to // better fit our test infrastructure: // -// * Instead of relying on println! to observe whether the destructor +// * Instead of relying on `println!` to observe whether the destructor // is run, we instead run the code in a spawned thread and // communicate the destructor's operation via a synchronous atomic // in static memory. |
