File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -76,9 +76,9 @@ Please read the [Rustonomicon] before writing unsafe code.
76
76
mechanisms outside Rust. Most assumptions of the Rust runtime are currently
77
77
not explicitly documented.
78
78
* For assumptions specifically related to unwinding, see [ unwinding-ub] .
79
- * Deallocating a Rust stack frame without executing destructors for local
80
- variables owned by the stack frame is always undefined . This can occur with
81
- C functions like ` longjmp ` .
79
+ * The runtime assumes that a Rust stack frame is not deallocated without
80
+ executing destructors for local variables owned by the stack frame. This assumption
81
+ can be violated by C functions like ` longjmp ` .
82
82
83
83
> ** Note** : Undefined behavior affects the entire program. For example, calling
84
84
> a function in C that exhibits undefined behavior of C means your entire
Original file line number Diff line number Diff line change @@ -244,13 +244,13 @@ from the "Native unwind" column in the table.
244
244
| panic runtime | ABI | ` panic ` -unwind | Native unwind (unforced) |
245
245
| -------------- | ------------ | ------------------------------------- | ----------------------- |
246
246
| ` panic=unwind ` | unwinding | unwind | unwind |
247
- | ` panic=unwind ` | non-unwinding | abort | [ Undefined Behavior ] |
247
+ | ` panic=unwind ` | non-unwinding | abort | [ undefined behavior ] |
248
248
| ` panic=abort ` | unwinding | ` panic! ` aborts (no unwinding occurs) | abort |
249
- | ` panic=abort ` | non-unwinding | ` panic! ` aborts (no unwinding occurs) | [ Undefined Behavior ] |
249
+ | ` panic=abort ` | non-unwinding | ` panic! ` aborts (no unwinding occurs) | [ undefined behavior ] |
250
250
251
251
[ panic-modes ] : ../panic.md#panic-runtimes
252
252
[ forced-unwinding ] : https://rust-lang.github.io/rfcs/2945-c-unwind-abi.html#forced-unwinding
253
- [ Undefined Behavior ] : ../behavior-considered-undefined.md
253
+ [ undefined behavior ] : ../behavior-considered-undefined.md
254
254
255
255
## Const functions
256
256
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ over panic behavior:
11
11
runtime.
12
12
* [ FFI ABIs] ( items/functions.md#unwinding ) may alter how panics behave.
13
13
14
- > ** Note** : The Standard Library provides the capability to explicitly panic
14
+ > ** Note** : The standard library provides the capability to explicitly panic
15
15
> via the [ ` panic! ` macro] [ macro-panic ] .
16
16
17
17
## Unwinding
@@ -31,7 +31,7 @@ if they had gone out of scope normally.
31
31
> "unwinding" may be implemented without actually using the mechanism used by
32
32
> C++ for the target platform.
33
33
34
- > ** Note** : The Standard Library provides two mechanisms for recovering from a panic,
34
+ > ** Note** : The standard library provides two mechanisms for recovering from a panic,
35
35
> [ ` catch_unwind ` ] [ fn-catch-unwind ] (which enables recovery within the
36
36
> panicking thread) and [ ` JoinHandle::join ` ] [ thread-join ] (which enables a process to
37
37
> continue execution without recovering the panicked thread).
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ fn panic(info: &PanicInfo) -> ! {
47
47
48
48
The standard library provides an implementation of ` panic_handler ` that
49
49
defaults to unwinding the stack but that can be [ changed to abort the
50
- process] [ abort ] . See also [ "Panic runtimes" ] [ panic-runtimes ] .
50
+ process] [ abort ] . See [ panic runtimes] for more details .
51
51
52
52
The standard library's panic behavior can be modified at runtime with the
53
53
[ ` set_hook ` function] [ set_hook ] .
@@ -82,7 +82,7 @@ display a console window on startup. It will run detached from any existing cons
82
82
[ abort ] : ../book/ch09-01-unrecoverable-errors-with-panic.html
83
83
[ attribute ] : attributes.md
84
84
[ crate types ] : linkage.md
85
- [ panic- runtimes ] : panic.md#panic-runtimes
85
+ [ panic runtimes ] : panic.md#panic-runtimes
86
86
[ set_hook ] : std::panic::set_hook
87
87
[ static item ] : items/static-items.md
88
88
[ subsystem ] : https://msdn.microsoft.com/en-us/library/fcc1zstk.aspx
You can’t perform that action at this time.
0 commit comments