diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-05-18 13:14:45 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-05-18 13:14:45 +1000 |
| commit | 9bfb90b1bed203a6df2850173f6fb30464e99645 (patch) | |
| tree | 38b3f8616e6b3a70f0ac82d6fd0ada5b65b35b35 /compiler/rustc_data_structures/src | |
| parent | ce5919fcef67103098219e1868f741e56fc90963 (diff) | |
| download | rust-9bfb90b1bed203a6df2850173f6fb30464e99645.tar.gz rust-9bfb90b1bed203a6df2850173f6fb30464e99645.zip | |
Remove unused `impl<T> WorkerLocal<Vec<T>>`.
Diffstat (limited to 'compiler/rustc_data_structures/src')
| -rw-r--r-- | compiler/rustc_data_structures/src/sync/worker_local.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/compiler/rustc_data_structures/src/sync/worker_local.rs b/compiler/rustc_data_structures/src/sync/worker_local.rs index bfb04ba8a73..d61bb55be68 100644 --- a/compiler/rustc_data_structures/src/sync/worker_local.rs +++ b/compiler/rustc_data_structures/src/sync/worker_local.rs @@ -154,13 +154,6 @@ impl<T> WorkerLocal<T> { } } -impl<T> WorkerLocal<Vec<T>> { - /// Joins the elements of all the worker locals into one Vec - pub fn join(self) -> Vec<T> { - self.into_inner().into_iter().flat_map(|v| v).collect() - } -} - impl<T> Deref for WorkerLocal<T> { type Target = T; |
