mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Clarify MoveData::init_loc_map.
Change the `SmallVec` size from 4 to 1, because that's sufficient in the vast majority of cases. (This doesn't affect performance in practice, so it's more of a code clarity change than a performance change.)
This commit is contained in:
@@ -177,8 +177,9 @@ pub struct MoveData<'tcx> {
|
||||
pub rev_lookup: MovePathLookup<'tcx>,
|
||||
pub inits: IndexVec<InitIndex, Init>,
|
||||
/// Each Location `l` is mapped to the Inits that are effects
|
||||
/// of executing the code at `l`.
|
||||
pub init_loc_map: LocationMap<SmallVec<[InitIndex; 4]>>,
|
||||
/// of executing the code at `l`. Only very rarely (e.g. inline asm)
|
||||
/// is there more than one Init at any `l`.
|
||||
pub init_loc_map: LocationMap<SmallVec<[InitIndex; 1]>>,
|
||||
pub init_path_map: IndexVec<MovePathIndex, SmallVec<[InitIndex; 4]>>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user