@@ -21,7 +21,7 @@ over panic behavior:
21
21
22
22
> [ !NOTE]
23
23
> The standard library provides the capability to explicitly panic
24
- > via the [ ` panic! ` macro] [ macro- panic] .
24
+ > via the [ ` panic! ` macro] [ panic! ] .
25
25
26
26
## Unwinding
27
27
@@ -49,8 +49,8 @@ just as if they had gone out of scope normally.
49
49
50
50
> [ !NOTE]
51
51
> The standard library provides two mechanisms for recovering from a panic,
52
- > [ ` catch_unwind ` ] [ fn-catch-unwind ] (which enables recovery within the
53
- > panicking thread) and [ ` thread::spawn ` ] [ thread-spawn ] (which automatically
52
+ > [ ` std::panic:: catch_unwind` ] (which enables recovery within the
53
+ > panicking thread) and [ ` std:: thread::spawn` ] (which automatically
54
54
> sets up panic recovery for the spawned thread so that other threads may
55
55
> continue running).
56
56
@@ -77,11 +77,11 @@ Unwinding with the wrong ABI is undefined behavior:
77
77
78
78
r[ panic.unwind.ffi.catch-foreign]
79
79
Catching a foreign unwinding operation (such as a C++ exception) using
80
- ` catch_unwind ` , ` JoinHandle::join ` , or by letting it propagate all the way to a
80
+ [ ` std::panic:: catch_unwind` ] , [ ` std::thread:: JoinHandle::join` ] , or by letting it propagate all the way to a
81
81
Rust ` main() ` function will have one of two behaviors, and it is unspecified
82
82
which will occur:
83
83
* The process aborts.
84
- * The function returns a ` Result::Err ` containing an opaque type.
84
+ * The function returns a [ ` Result::Err ` ] containing an opaque type.
85
85
86
86
> [ !NOTE]
87
87
> Rust code compiled or linked with a different instance of the Rust runtime counts as a
@@ -120,8 +120,5 @@ See also the [`panic_handler` attribute](runtime.md#the-panic_handler-attribute)
120
120
121
121
[ array indexing ] : expressions/array-expr.md#array-and-slice-indexing-expressions
122
122
[ destructors ] : destructors.md
123
- [ fn-catch-unwind ] : ../std/panic/fn.catch_unwind.html
124
- [ macro-panic ] : ../std/macro.panic.html
125
123
[ runtime ] : runtime.md
126
- [ thread-spawn ] : ../std/thread/fn.spawn.html
127
124
[ unwind-abi ] : items/functions.md#unwinding
0 commit comments