[][src]Module rustc::middle::region

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

This file builds up the ScopeTree, which describes the parent links in the region hierarchy.

For more information about how MIR-based region-checking works, see the rustc guide.

Structs

Context [
Experimental
]
ExprLocatorVisitor [
Experimental
]
FirstStatementIndex [
Experimental
]
RegionResolutionVisitor [
Experimental
]
Scope [
Experimental
]

Scope represents a statically-describable scope that can be used to bound the lifetime/region for values.

ScopeTree [
Experimental
]

The region scope tree encodes information about region relationships.

Enums

ScopeData [
Experimental
]

Statics

ASSERT [
Experimental
]

Functions

provide [
Experimental
]
record_var_lifetime [
Experimental
]

Records the lifetime of a local variable as cx.var_parent

region_scope_tree [
Experimental
]
resolve_arm [
Experimental
]
resolve_block [
Experimental
]
resolve_expr [
Experimental
]
resolve_local [
Experimental
]
resolve_pat [
Experimental
]
resolve_stmt [
Experimental
]

Type Definitions

ScopeDepth [
Experimental
]