Skip to content

Commit 7c6fe0b

Browse files
Clarify what rt.rs is. (#1876)
Most files names are relatively explicit and probably don't need to be explicited. However `rt.rs` is really not clear, and I believe it clarifies the text to indicate this is runtime service implementation.
1 parent 9dbff1e commit 7c6fe0b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: src/panic-implementation.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ responsible for unwinding the stack, running any 'landing pads' associated
107107
with each frame (currently, running destructors), and transferring control
108108
to the `catch_unwind` frame.
109109

110-
Note that all panics either abort the process or get caught by some call to `catch_unwind`:
111-
in `library/std/src/rt.rs`, the call to the user-provided
112-
`main` function is wrapped in `catch_unwind`.
110+
Note that all panics either abort the process or get caught by some call to
111+
`catch_unwind`. In particular, std's [runtime
112+
service](https://github.com/rust-lang/rust/blob/master/library/std/src/rt.rs)
113+
wrap the call to the user-provided `main` function is wrapped in `catch_unwind`.

0 commit comments

Comments
 (0)