factor out the rvalue lifetime rule

remove region_scope_tree from RegionCtxt

Apply suggestions from code review

Co-authored-by: Niko Matsakis <niko@alum.mit.edu>
This commit is contained in:
Ding Xiang Fei 2022-04-01 21:12:18 +08:00
parent bb5e6c984d
commit 6044fbe462
No known key found for this signature in database
GPG key ID: 3CD748647EEF6359
25 changed files with 363 additions and 192 deletions

View file

@ -72,6 +72,7 @@ pub use self::context::{
};
pub use self::instance::{Instance, InstanceDef};
pub use self::list::List;
pub use self::rvalue_scopes::RvalueScopes;
pub use self::sty::BoundRegionKind::*;
pub use self::sty::RegionKind::*;
pub use self::sty::TyKind::*;
@ -118,6 +119,7 @@ mod generics;
mod impls_ty;
mod instance;
mod list;
mod rvalue_scopes;
mod structural_impls;
mod sty;