diff options
| author | Jeremy Stucki <jeremy@myelin.ch> | 2019-06-25 19:36:30 +0200 |
|---|---|---|
| committer | Jeremy Stucki <stucki.jeremy@gmail.com> | 2019-07-03 10:01:03 +0200 |
| commit | 88c515da0728a3a3738be6ffa96168d060243225 (patch) | |
| tree | f7c3edd82cf04d10e02275af0a2f5278a3628def /src/libstd/sync | |
| parent | edcde7025c928de35e8635c6725b20ce91dc241d (diff) | |
| download | rust-88c515da0728a3a3738be6ffa96168d060243225.tar.gz rust-88c515da0728a3a3738be6ffa96168d060243225.zip | |
Revert changes to the standard library
Moved to its own PR
Diffstat (limited to 'src/libstd/sync')
| -rw-r--r-- | src/libstd/sync/mpsc/sync.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sync/mpsc/sync.rs b/src/libstd/sync/mpsc/sync.rs index a9c4c7345c2..3c4f8e077c9 100644 --- a/src/libstd/sync/mpsc/sync.rs +++ b/src/libstd/sync/mpsc/sync.rs @@ -140,7 +140,7 @@ fn wait_timeout_receiver<'a, 'b, T>(lock: &'a Mutex<State<T>>, new_guard } -fn abort_selection<T>(guard: &mut MutexGuard<'_, State<T>>) -> bool { +fn abort_selection<'a, T>(guard: &mut MutexGuard<'a , State<T>>) -> bool { match mem::replace(&mut guard.blocker, NoneBlocked) { NoneBlocked => true, BlockedSender(token) => { |
