From 0a233e4de1b0576a82e00fb0e0ba91297b921876 Mon Sep 17 00:00:00 2001 From: Arthur Milchior Date: Sun, 28 Jan 2024 23:28:06 +0100 Subject: [PATCH] Clarify what rt.rs is. 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. --- src/panic-implementation.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/panic-implementation.md b/src/panic-implementation.md index d1ca202dc..8d1a852c9 100644 --- a/src/panic-implementation.md +++ b/src/panic-implementation.md @@ -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`.