File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
rustc_thread_pool/src/sleep Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff 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`.
Original file line number Diff line number Diff 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
4848pub ( super ) struct Sleep {
4949 /// One "sleep state" per worker. Used to track if a worker is sleeping and to have
5050 /// them block.
You can’t perform that action at this time.
0 commit comments