Skip to main content

Module values

Module values 

Source

Re-exportsยง

use std::fmt::Debug; ๐Ÿ”’
use std::fmt::Debug; ๐Ÿ”’
use std::rc::Rc; ๐Ÿ”’
use rustc_data_structures::fx::FxHashSet; ๐Ÿ”’
use rustc_data_structures::fx::FxIndexSet; ๐Ÿ”’
use rustc_index::Idx; ๐Ÿ”’
use rustc_index::bit_set::SparseBitMatrix; ๐Ÿ”’
use rustc_index::interval::IntervalSet; ๐Ÿ”’
use rustc_index::interval::SparseIntervalMatrix; ๐Ÿ”’
use rustc_middle::mir::BasicBlock; ๐Ÿ”’
use rustc_middle::mir::Location; ๐Ÿ”’
use rustc_middle::ty; ๐Ÿ”’
use rustc_middle::ty::RegionVid; ๐Ÿ”’
use rustc_mir_dataflow::points::DenseLocationMap; ๐Ÿ”’
use rustc_mir_dataflow::points::PointIndex; ๐Ÿ”’
use rustc_span::bug; ๐Ÿ”’
use tracing::debug; ๐Ÿ”’
use tracing::instrument; ๐Ÿ”’
use tracing::instrument; ๐Ÿ”’
use crate::BorrowIndex; ๐Ÿ”’
use crate::polonius::LiveLoans; ๐Ÿ”’

Structsยง

LivenessValues ๐Ÿ”’
Records the CFG locations where each region is live. When we initially compute liveness, we use an interval matrix storing liveness ranges for each region-vid.
PlaceholderIndex ๐Ÿ”’
A single integer representing a ty::Placeholder.
PlaceholderIndices ๐Ÿ”’
Maps from ty::PlaceholderRegion values that are used in the rest of rustc to the internal PlaceholderIndex values that are used in NLL.
RegionValues ๐Ÿ”’
Stores the full values for a set of regions (in contrast to LivenessValues, which only stores those points in the where a region is live). The full value for a region may contain points in the CFG, but also free regions as well as bound universe placeholders.

Enumsยง

LiveRegions ๐Ÿ”’
Either a mapping of which points a region is live at (for regular bodies), or which regions are live in the body somewhere (for promoteds, which do not care about where they are live, only that they are).
RegionElement ๐Ÿ”’
An individual element in a region value โ€“ the value of a particular region variable consists of a set of these elements.

Functionsยง

pretty_print_region_elements ๐Ÿ”’
For debugging purposes, returns a pretty-printed string of the given region elements.