diff options
| author | Florian Bartels <Florian.Bartels@elektrobit.com> | 2022-10-06 08:52:36 +0200 |
|---|---|---|
| committer | Florian Bartels <Florian.Bartels@elektrobit.com> | 2022-10-06 09:55:32 +0200 |
| commit | 9a97cc8ca5f863cacf39c9aaa4ca6ad872bc8172 (patch) | |
| tree | ac09f36d5678bceba536f755e5aea97491bc64bf | |
| parent | 56503460c88844a61fbf47cc6702e206355b0a2b (diff) | |
| download | rust-9a97cc8ca5f863cacf39c9aaa4ca6ad872bc8172.tar.gz rust-9a97cc8ca5f863cacf39c9aaa4ca6ad872bc8172.zip | |
Fix whitespace
| -rw-r--r-- | library/std/src/panicking.rs | 4 | ||||
| -rw-r--r-- | src/test/ui/process/process-panic-after-fork.rs | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/library/std/src/panicking.rs b/library/std/src/panicking.rs index cd4d41fe123..d4976a469cc 100644 --- a/library/std/src/panicking.rs +++ b/library/std/src/panicking.rs @@ -309,10 +309,10 @@ pub mod panic_count { // records whether panic::always_abort() has been called. This can only be // set, never cleared. // panic::always_abort() is usually called to prevent memory allocations done by - // the panic handling in the child created by `libc::fork`. + // the panic handling in the child created by `libc::fork`. // Memory allocations performed in a child created with `libc::fork` are undefined // behavior in most operating systems. - // Accessing LOCAL_PANIC_COUNT in a child created by `libc::fork` would lead to a memory + // Accessing LOCAL_PANIC_COUNT in a child created by `libc::fork` would lead to a memory // allocation. Only GLOBAL_PANIC_COUNT can be accessed in this situation. This is // sufficient because a child process will always have exactly one thread only. // See also #85261 for details. diff --git a/src/test/ui/process/process-panic-after-fork.rs b/src/test/ui/process/process-panic-after-fork.rs index 43c23b49737..b08aa895dec 100644 --- a/src/test/ui/process/process-panic-after-fork.rs +++ b/src/test/ui/process/process-panic-after-fork.rs @@ -99,7 +99,9 @@ fn expect_aborted(status: ExitStatus) { // If the next assert fails sporadically we might have an issue with parallel crashing apps assert!(tombstone .contains(&std::env::current_exe().unwrap().into_os_string().into_string().unwrap())); - assert!(tombstone.contains("signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad")); + assert!(tombstone.contains( + "signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad" + )); } } |
