Note the invariance over 'env in Scope<'env>.

This commit is contained in:
Mara Bos 2022-01-05 12:13:33 +01:00
parent 5bd5781823
commit aa9c0881ef

View File

@ -11,6 +11,8 @@ use crate::sync::Arc;
/// See [`scope`] for details.
pub struct Scope<'env> {
data: ScopeData,
/// Invariance over 'env, to make sure 'env cannot shrink,
/// which is necessary for soundness.
env: PhantomData<&'env mut &'env ()>,
}