about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/debug.rs
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2022-05-21 11:15:28 +0200
committerMara Bos <m-ou.se@m-ou.se>2022-05-21 11:15:28 +0200
commit3b70c29103cce7b03b6f0fe465e1197a3b212179 (patch)
treec56622f10b8696858106d5c441647e79a0c97069 /compiler/rustc_mir_transform/src/coverage/debug.rs
parent4f372b14dea58cbff1dd76bb651f9c035d3f6e7b (diff)
downloadrust-3b70c29103cce7b03b6f0fe465e1197a3b212179.tar.gz
rust-3b70c29103cce7b03b6f0fe465e1197a3b212179.zip
Fix typo in futex RwLock::write_contended.
I wrote `state` where I should've used `s`.

This removes the unnecessary `s` variable to prevent that mistake.

Fortunately, this typo didn't affect the correctness of the lock, as the
second half of the condition (!has_writers_waiting) is enough for
correctness, which explains why this mistake didn't show up during
testing.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions