mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-30 16:43:41 +00:00
Note the invariance over 'env in Scope<'env>.
This commit is contained in:
parent
5bd5781823
commit
aa9c0881ef
@ -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 ()>,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user