We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bd5781 commit aa9c088Copy full SHA for aa9c088
library/std/src/thread/scoped.rs
@@ -11,6 +11,8 @@ use crate::sync::Arc;
11
/// See [`scope`] for details.
12
pub struct Scope<'env> {
13
data: ScopeData,
14
+ /// Invariance over 'env, to make sure 'env cannot shrink,
15
+ /// which is necessary for soundness.
16
env: PhantomData<&'env mut &'env ()>,
17
}
18
0 commit comments