File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ been "cleaned up" just as if they had gone out of scope normally.
30
30
> continue execution without recovering the panicked thread).
31
31
32
32
## Panic runtimes
33
- [ top ] : #panic-runtimes
34
33
35
34
The actual behavior and implementation of ` panic! ` is controlled by the _ panic
36
35
runtime_ .
@@ -43,7 +42,10 @@ When compiling code that is guaranteed to be linked to a non-recoverable panic
43
42
runtime, the optimizer may assume that unwinding across Rust frames is
44
43
impossible, which can result in both code-size and runtime speed improvements.
45
44
45
+ See also [ "The Rust runtime"] [ runtime ] .
46
+
46
47
[ destructors ] : destructors.md
47
48
[ fn-catch-unwind ] : ../std/panic/fn.catch_unwind.html
48
49
[ macro-panic ] : ../std/macro.panic.html
49
50
[ thread-join ] : ../std/thread/struct.JoinHandle.html#method.join
51
+ [ runtime ] : runtime.md
Original file line number Diff line number Diff line change @@ -47,8 +47,10 @@ 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 ] . The standard library's panic behavior can be modified at
51
- runtime with the [ set_hook] function.
50
+ process] [ abort ] . See also [ "Panic runtimes"] [ panic-runtimes ] .
51
+
52
+ The standard library's panic behavior can be modified at runtime with the
53
+ [ ` set_hook ` function] [ set_hook ] .
52
54
53
55
## The ` global_allocator ` attribute
54
56
@@ -80,6 +82,7 @@ display a console window on startup. It will run detached from any existing cons
80
82
[ abort ] : ../book/ch09-01-unrecoverable-errors-with-panic.html
81
83
[ attribute ] : attributes.md
82
84
[ crate types ] : linkage.md
85
+ [ panic-runtimes ] : panic.md#panic-runtimes
83
86
[ set_hook ] : ../std/panic/fn.set_hook.html
84
87
[ static item ] : items/static-items.md
85
88
[ subsystem ] : https://msdn.microsoft.com/en-us/library/fcc1zstk.aspx
You can’t perform that action at this time.
0 commit comments