Skip to content

Commit cd106c5

Browse files
committed
wip
1 parent 042b8c6 commit cd106c5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler/rustc_mir_dataflow/src/impls/initialized2.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ impl<'a, 'tcx> MaybeInitializedPlaces2<'a, 'tcx, DefaultMovePathIndexMapper> {
136136
let mut sparse_map = FxIndexMap::default();
137137
for (idx, &dense_idx) in interesting_move_paths.iter().enumerate() {
138138
// SAFETY: `MovePathIndex`es are u32s.
139-
// let sparse_idx = unsafe {
140-
// SparseMovePathIndex::from_u32_unchecked(idx.try_into().unwrap())
141-
// };
142-
let sparse_idx = SparseMovePathIndex::from_u32(idx.try_into().unwrap());
139+
let sparse_idx = unsafe {
140+
SparseMovePathIndex::from_u32_unchecked(idx.try_into().unwrap())
141+
};
142+
// let sparse_idx = SparseMovePathIndex::from_u32(idx.try_into().unwrap());
143143
sparse_map.insert(dense_idx, sparse_idx);
144144
}
145145
let index_mapper = FilteringMovePathIndexMapper { sparse_map };

0 commit comments

Comments
 (0)