Module rustc_typeck::check::region
source · [−]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
Functions
Records the lifetime of a local variable as
cx.var_parent
Per-body
region::ScopeTree
. The DefId
should be the owner DefId
for the body;
in the case of closures, this will be redirected to the enclosing function.