diff options
| author | binarycat <binarycat@envs.net> | 2025-07-24 12:37:46 -0500 |
|---|---|---|
| committer | binarycat <binarycat@envs.net> | 2025-07-24 12:37:46 -0500 |
| commit | a73d7e3ab9cc29cb427c1463d1a02b89dd7728b6 (patch) | |
| tree | 2116eaaa1c7c946b7f51b0dcf9b989b4f3d0bb1f | |
| parent | bd85df192d07660511b711cd7d4cae5b5a85577a (diff) | |
| download | rust-a73d7e3ab9cc29cb427c1463d1a02b89dd7728b6.tar.gz rust-a73d7e3ab9cc29cb427c1463d1a02b89dd7728b6.zip | |
fix up issues with internal compiler docs revealed by stricter lint
| -rw-r--r-- | compiler/rustc_mir_transform/src/elaborate_drop.rs | 4 | ||||
| -rw-r--r-- | compiler/rustc_thread_pool/src/sleep/mod.rs | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/compiler/rustc_mir_transform/src/elaborate_drop.rs b/compiler/rustc_mir_transform/src/elaborate_drop.rs index de96b1f255a..de60772b17e 100644 --- a/compiler/rustc_mir_transform/src/elaborate_drop.rs +++ b/compiler/rustc_mir_transform/src/elaborate_drop.rs @@ -611,6 +611,7 @@ where /// /// For example, with 3 fields, the drop ladder is /// + /// ```text /// .d0: /// ELAB(drop location.0 [target=.d1, unwind=.c1]) /// .d1: @@ -621,8 +622,10 @@ where /// ELAB(drop location.1 [target=.c2]) /// .c2: /// ELAB(drop location.2 [target=`self.unwind`]) + /// ``` /// /// For possible-async drops in coroutines we also need dropline ladder + /// ```text /// .d0 (mainline): /// ELAB(drop location.0 [target=.d1, unwind=.c1, drop=.e1]) /// .d1 (mainline): @@ -637,6 +640,7 @@ where /// ELAB(drop location.1 [target=.e2, unwind=.c2]) /// .e2 (dropline): /// ELAB(drop location.2 [target=`self.drop`, unwind=`self.unwind`]) + /// ``` /// /// NOTE: this does not clear the master drop flag, so you need /// to point succ/unwind on a `drop_ladder_bottom`. diff --git a/compiler/rustc_thread_pool/src/sleep/mod.rs b/compiler/rustc_thread_pool/src/sleep/mod.rs index 31bf7184b42..aa666609214 100644 --- a/compiler/rustc_thread_pool/src/sleep/mod.rs +++ b/compiler/rustc_thread_pool/src/sleep/mod.rs @@ -44,7 +44,7 @@ impl SleepData { /// jobs are published, and it either blocks threads or wakes them in response to these /// events. See the [`README.md`] in this module for more details. /// -/// [`README.md`] README.md +/// [`README.md`]: README.md pub(super) struct Sleep { /// One "sleep state" per worker. Used to track if a worker is sleeping and to have /// them block. |
