Skip to content

Commit a73d7e3

Browse files
committed
fix up issues with internal compiler docs revealed by stricter lint
1 parent bd85df1 commit a73d7e3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

compiler/rustc_mir_transform/src/elaborate_drop.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,7 @@ where
611611
///
612612
/// For example, with 3 fields, the drop ladder is
613613
///
614+
/// ```text
614615
/// .d0:
615616
/// ELAB(drop ___location.0 [target=.d1, unwind=.c1])
616617
/// .d1:
@@ -621,8 +622,10 @@ where
621622
/// ELAB(drop ___location.1 [target=.c2])
622623
/// .c2:
623624
/// ELAB(drop ___location.2 [target=`self.unwind`])
625+
/// ```
624626
///
625627
/// For possible-async drops in coroutines we also need dropline ladder
628+
/// ```text
626629
/// .d0 (mainline):
627630
/// ELAB(drop ___location.0 [target=.d1, unwind=.c1, drop=.e1])
628631
/// .d1 (mainline):
@@ -637,6 +640,7 @@ where
637640
/// ELAB(drop ___location.1 [target=.e2, unwind=.c2])
638641
/// .e2 (dropline):
639642
/// ELAB(drop ___location.2 [target=`self.drop`, unwind=`self.unwind`])
643+
/// ```
640644
///
641645
/// NOTE: this does not clear the master drop flag, so you need
642646
/// to point succ/unwind on a `drop_ladder_bottom`.

compiler/rustc_thread_pool/src/sleep/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ impl SleepData {
4444
/// jobs are published, and it either blocks threads or wakes them in response to these
4545
/// events. See the [`README.md`] in this module for more details.
4646
///
47-
/// [`README.md`] README.md
47+
/// [`README.md`]: README.md
4848
pub(super) struct Sleep {
4949
/// One "sleep state" per worker. Used to track if a worker is sleeping and to have
5050
/// them block.

0 commit comments

Comments
 (0)