diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2022-01-04 16:57:16 +0100 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2022-01-04 16:57:16 +0100 |
| commit | c5cb2def06c210a99a7299cfed67826b22452cf8 (patch) | |
| tree | 9696c0ffc6e4920a095672820237894b5cd14396 | |
| parent | 4300bea0c25ae5dabf6865d333568eede555856f (diff) | |
| download | rust-c5cb2def06c210a99a7299cfed67826b22452cf8.tar.gz rust-c5cb2def06c210a99a7299cfed67826b22452cf8.zip | |
Fix variance of thread::Scope.
| -rw-r--r-- | library/std/src/thread/scoped.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/thread/scoped.rs b/library/std/src/thread/scoped.rs index 0db938b9f39..cb5f48e5107 100644 --- a/library/std/src/thread/scoped.rs +++ b/library/std/src/thread/scoped.rs @@ -11,7 +11,7 @@ use crate::sync::Arc; /// See [`scope`] for details. pub struct Scope<'env> { data: ScopeData, - env: PhantomData<&'env ()>, + env: PhantomData<&'env mut &'env ()>, } /// An owned permission to join on a scoped thread (block on its termination). |
