Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 053b36f

Browse files
Clarify what rt.rs is. (rust-lang#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 baeccfb commit 053b36f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/doc/rustc-dev-guide/src/panic-implementation.md

Lines changed: 4 additions & 3 deletions
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)