mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
fix up issues with internal compiler docs revealed by stricter lint
This commit is contained in:
@@ -611,6 +611,7 @@ fn drop_ladder_bottom(&mut self) -> (BasicBlock, Unwind, Option<BasicBlock>) {
|
||||
///
|
||||
/// For example, with 3 fields, the drop ladder is
|
||||
///
|
||||
/// ```text
|
||||
/// .d0:
|
||||
/// ELAB(drop location.0 [target=.d1, unwind=.c1])
|
||||
/// .d1:
|
||||
@@ -621,8 +622,10 @@ fn drop_ladder_bottom(&mut self) -> (BasicBlock, Unwind, Option<BasicBlock>) {
|
||||
/// 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 @@ fn drop_ladder_bottom(&mut self) -> (BasicBlock, Unwind, Option<BasicBlock>) {
|
||||
/// 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`.
|
||||
|
||||
@@ -44,7 +44,7 @@ pub(super) fn deadlock_check(&self, deadlock_handler: &Option<Box<DeadlockHandle
|
||||
/// 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.
|
||||
|
||||
Reference in New Issue
Block a user