Skip to content

Commit 9a97cc8

Browse files
committed
Fix whitespace
1 parent 5650346 commit 9a97cc8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

library/std/src/panicking.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -309,10 +309,10 @@ pub mod panic_count {
309309
// records whether panic::always_abort() has been called. This can only be
310310
// set, never cleared.
311311
// panic::always_abort() is usually called to prevent memory allocations done by
312-
// the panic handling in the child created by `libc::fork`.
312+
// the panic handling in the child created by `libc::fork`.
313313
// Memory allocations performed in a child created with `libc::fork` are undefined
314314
// behavior in most operating systems.
315-
// Accessing LOCAL_PANIC_COUNT in a child created by `libc::fork` would lead to a memory
315+
// Accessing LOCAL_PANIC_COUNT in a child created by `libc::fork` would lead to a memory
316316
// allocation. Only GLOBAL_PANIC_COUNT can be accessed in this situation. This is
317317
// sufficient because a child process will always have exactly one thread only.
318318
// See also #85261 for details.

src/test/ui/process/process-panic-after-fork.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ fn expect_aborted(status: ExitStatus) {
9999
// If the next assert fails sporadically we might have an issue with parallel crashing apps
100100
assert!(tombstone
101101
.contains(&std::env::current_exe().unwrap().into_os_string().into_string().unwrap()));
102-
assert!(tombstone.contains("signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad"));
102+
assert!(tombstone.contains(
103+
"signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad"
104+
));
103105
}
104106
}
105107

0 commit comments

Comments
 (0)