mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-30 01:46:06 +00:00
Prevent double reference in generic futex In the Windows futex implementation we were a little lax at allowing references to references (i.e. `&&`) which can lead to deadlocks due to reading the wrong memory address. This uses a trait to tighten the constraints and ensure this doesn't happen. r? libs