Note the invariance over 'env in Scope<'env>.
This commit is contained in:
@@ -11,6 +11,8 @@ use crate::sync::Arc;
|
|||||||
/// See [`scope`] for details.
|
/// See [`scope`] for details.
|
||||||
pub struct Scope<'env> {
|
pub struct Scope<'env> {
|
||||||
data: ScopeData,
|
data: ScopeData,
|
||||||
|
/// Invariance over 'env, to make sure 'env cannot shrink,
|
||||||
|
/// which is necessary for soundness.
|
||||||
env: PhantomData<&'env mut &'env ()>,
|
env: PhantomData<&'env mut &'env ()>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user