Rollup merge of #111707 - nnethercote:rm-WorkerLocal-Vec, r=compiler-errors

Remove unused `impl<T> WorkerLocal<Vec<T>>`.

cc ``@SparrowLii`` ``@Zoxc``
This commit is contained in:
Dylan DPC 2023-05-18 17:37:10 +05:30 committed by GitHub
commit ad214ac02b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -154,13 +154,6 @@ pub fn into_inner(self) -> impl Iterator<Item = 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;