Rollup merge of #113717 - cuishuang:master, r=Nilstrieb

remove repetitive words
This commit is contained in:
Matthias Krüger 2023-07-31 22:49:47 +02:00 committed by GitHub
commit 58f963fb65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View file

@ -116,7 +116,7 @@ pub struct WorkerLocal<T> {
// This is safe because the `deref` call will return a reference to a `T` unique to each thread
// or it will panic for threads without an associated local. So there isn't a need for `T` to do
// it's own synchronization. The `verify` method on `RegistryId` has an issue where the the id
// it's own synchronization. The `verify` method on `RegistryId` has an issue where the id
// can be reused, but `WorkerLocal` has a reference to `Registry` which will prevent any reuse.
#[cfg(parallel_compiler)]
unsafe impl<T: Send> Sync for WorkerLocal<T> {}