Skip to main content

Module region

Module region 

Source
Expand description

This file declares the ScopeTree type, which describes the parent links in the region hierarchy.

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

Re-exportsยง

use std::fmt; ๐Ÿ”’
use rustc_data_structures::fx::FxIndexMap; ๐Ÿ”’
use rustc_data_structures::unord::UnordMap; ๐Ÿ”’
use rustc_hir as hir; ๐Ÿ”’
use rustc_hir::HirId; ๐Ÿ”’
use rustc_hir::ItemLocalMap; ๐Ÿ”’
use rustc_hir::Node; ๐Ÿ”’
use rustc_macros::StableHash; ๐Ÿ”’
use rustc_macros::TyDecodable; ๐Ÿ”’
use rustc_macros::TyEncodable; ๐Ÿ”’
use rustc_span::DUMMY_SP; ๐Ÿ”’
use rustc_span::Span; ๐Ÿ”’
use rustc_span::span_bug; ๐Ÿ”’
use tracing::debug; ๐Ÿ”’
use crate::ty; ๐Ÿ”’
use crate::ty::TyCtxt; ๐Ÿ”’

Structsยง

FirstStatementIndex
Represents a subscope of block for a binding that is introduced by block.stmts[first_statement_index]. Such subscopes represent a suffix of the block. Note that each subscope does not include the initializer expression, if any, for the statement indexed by first_statement_index.
Scope
Represents a statically-describable scope that can be used to bound the lifetime/region for values.
ScopeTree
The region scope tree encodes information about region relationships.
TempLifetime
Temporary lifetime information for expressions, used when lowering to MIR.

Enumsยง

ScopeData