Skip to content

Commit

Permalink
Clarify what rt.rs is.
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 committed Jan 28, 2024
1 parent 5a7b5f8 commit 0a233e4
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 0a233e4

Please sign in to comment.