mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 02:00:00 +03:00
599d32414b
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