mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-05 03:24:06 +03:00
765a4e9fe3
The fairness yield mistakenly called `Local::take()` which meant that it would only work if a local task was available. In theory sending on a channel (or calling try_recv) requires no runtime because it never blocks, so there's no reason it shouldn't support such a use case. Closes #12391