From 053b36f6b45c15a5f2a00009dfd98c422833c290 Mon Sep 17 00:00:00 2001 From: Arthur Milchior Date: Sun, 28 Jan 2024 23:40:36 +0100 Subject: [PATCH] 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. --- src/doc/rustc-dev-guide/src/panic-implementation.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/doc/rustc-dev-guide/src/panic-implementation.md b/src/doc/rustc-dev-guide/src/panic-implementation.md index d1ca202dc64e..8d1a852c9941 100644 --- a/src/doc/rustc-dev-guide/src/panic-implementation.md +++ b/src/doc/rustc-dev-guide/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`.