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
611
611
///
612
612
/// For example, with 3 fields, the drop ladder is
613
613
///
614
+ /// ```text
614
615
/// .d0:
615
616
/// ELAB(drop ___location.0 [target=.d1, unwind=.c1])
616
617
/// .d1:
@@ -621,8 +622,10 @@ where
621
622
/// ELAB(drop ___location.1 [target=.c2])
622
623
/// .c2:
623
624
/// ELAB(drop ___location.2 [target=`self.unwind`])
625
+ /// ```
624
626
///
625
627
/// For possible-async drops in coroutines we also need dropline ladder
628
+ /// ```text
626
629
/// .d0 (mainline):
627
630
/// ELAB(drop ___location.0 [target=.d1, unwind=.c1, drop=.e1])
628
631
/// .d1 (mainline):
@@ -637,6 +640,7 @@ where
637
640
/// ELAB(drop ___location.1 [target=.e2, unwind=.c2])
638
641
/// .e2 (dropline):
639
642
/// ELAB(drop ___location.2 [target=`self.drop`, unwind=`self.unwind`])
643
+ /// ```
640
644
///
641
645
/// NOTE: this does not clear the master drop flag, so you need
642
646
/// 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 {
44
44
/// jobs are published, and it either blocks threads or wakes them in response to these
45
45
/// events. See the [`README.md`] in this module for more details.
46
46
///
47
- /// [`README.md`] README.md
47
+ /// [`README.md`]: README.md
48
48
pub ( super ) struct Sleep {
49
49
/// One "sleep state" per worker. Used to track if a worker is sleeping and to have
50
50
/// them block.
You can’t perform that action at this time.
0 commit comments