about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/debug.rs
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2022-05-22 11:53:08 +0900
committerGitHub <noreply@github.com>2022-05-22 11:53:08 +0900
commit76725e081d5bfb6a7285acce8b3427cf3f60df58 (patch)
tree1a076f63c6bb1446d315f65dbe8de5bedcc5ff7d /compiler/rustc_mir_transform/src/coverage/debug.rs
parent6ef4911b994a84591136d34185d3c17f2960a4df (diff)
parent3b70c29103cce7b03b6f0fe465e1197a3b212179 (diff)
downloadrust-76725e081d5bfb6a7285acce8b3427cf3f60df58.tar.gz
rust-76725e081d5bfb6a7285acce8b3427cf3f60df58.zip
Rollup merge of #97245 - m-ou-se:rwlock-state-typo, r=JohnTitor
Fix typo in futex RwLock::write_contended.

I wrote `state` where I should've used `s`.

This was spotted by `@Warrenren.`

This change 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.

Fixes https://github.com/rust-lang/rust/issues/97162
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions