Module 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ยง

Context ๐Ÿ”’
ScopeResolutionVisitor ๐Ÿ”’

Functionsยง

record_var_lifetime ๐Ÿ”’
Records the lifetime of a local variable as cx.var_parent
region_scope_tree ๐Ÿ”’
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.
resolve_arm ๐Ÿ”’
resolve_block ๐Ÿ”’
resolve_expr ๐Ÿ”’
resolve_local ๐Ÿ”’
resolve_pat ๐Ÿ”’
resolve_stmt ๐Ÿ”’