Skip to content

Commit

Permalink
Clarify what rt.rs is. (#1876)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Arthur-Milchior authored Jan 28, 2024
1 parent 9dbff1e commit 7c6fe0b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/panic-implementation.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ responsible for unwinding the stack, running any 'landing pads' associated
with each frame (currently, running destructors), and transferring control
to the `catch_unwind` frame.

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

0 comments on commit 7c6fe0b

Please sign in to comment.