mirror of
https://github.com/rust-lang/rust
synced 2024-10-19 23:13:41 +00:00
Fix variance of thread::Scope.
This commit is contained in:
parent
4300bea0c2
commit
c5cb2def06
|
@ -11,7 +11,7 @@
|
|||
/// 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).
|
||||
|
|
Loading…
Reference in a new issue