Skip to content

Commit ad214ac

Browse files
authored
Rollup merge of rust-lang#111707 - nnethercote:rm-WorkerLocal-Vec, r=compiler-errors
Remove unused `impl<T> WorkerLocal<Vec<T>>`. cc ``@SparrowLii`` ``@Zoxc``
2 parents cca0f97 + 9bfb90b commit ad214ac

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

compiler/rustc_data_structures/src/sync/worker_local.rs

-7
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,6 @@ impl<T> WorkerLocal<T> {
154154
}
155155
}
156156

157-
impl<T> WorkerLocal<Vec<T>> {
158-
/// Joins the elements of all the worker locals into one Vec
159-
pub fn join(self) -> Vec<T> {
160-
self.into_inner().into_iter().flat_map(|v| v).collect()
161-
}
162-
}
163-
164157
impl<T> Deref for WorkerLocal<T> {
165158
type Target = T;
166159

0 commit comments

Comments
 (0)