Expand description
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 dev guide.
Structsยง
- Context ๐
- Scope
Resolution ๐Visitor
Functionsยง
- record_
var_ ๐lifetime - Records the lifetime of a local variable as
cx.var_parent
- region_
scope_ ๐tree - Per-body
region::ScopeTree
. TheDefId
should be the ownerDefId
for the body; in the case of closures, this will be redirected to the enclosing function. - resolve_
arm ๐ - resolve_
block ๐ - resolve_
expr ๐ - resolve_
local ๐ - resolve_
pat ๐ - resolve_
stmt ๐