ReplacementMap in rustc_mir_transform::sroa - Rust (original) (raw)

Struct ReplacementMap

Source

struct ReplacementMap<'tcx> {
    fragments: IndexVec<Local, Option<IndexVec<FieldIdx, Option<(Ty<'tcx>, Local)>>>>,
}

Pre-computed list of all “new” locals for each “old” local. This is used to expand storage and deinit statement and debuginfo.

§

§

§

§

§

§

§

§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 24 bytes