about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorArthur Milchior <arthur@milchior.fr>2024-01-28 23:40:36 +0100
committerGitHub <noreply@github.com>2024-01-28 19:40:36 -0300
commit053b36f6b45c15a5f2a00009dfd98c422833c290 (patch)
treef8d08ad05bfdbc4eddc15203e7440aab68e1e007 /src/doc/rustc-dev-guide
parentbaeccfbd82d3fc82dc3e30e72b95cc439775d909 (diff)
downloadrust-053b36f6b45c15a5f2a00009dfd98c422833c290.tar.gz
rust-053b36f6b45c15a5f2a00009dfd98c422833c290.zip
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.
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/panic-implementation.md7
1 files 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 d1ca202dc64..8d1a852c994 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`.