Skip to content

Commit d51c7c3

Browse files
committed
wip
1 parent 8febc06 commit d51c7c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_mir_dataflow/src/impls/initialized2.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ 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 { SparseMovePathIndex::from_u32_unchecked(idx as u32) };
140-
// let sparse_idx = SparseMovePathIndex::from_u32(idx.try_into().unwrap());
139+
// let sparse_idx = unsafe { SparseMovePathIndex::from_u32_unchecked(idx as u32) };
140+
let sparse_idx = SparseMovePathIndex::from_u32(idx.try_into().unwrap());
141141
sparse_map.insert(dense_idx, sparse_idx);
142142
}
143143
let index_mapper = FilteringMovePathIndexMapper { sparse_map };

0 commit comments

Comments
 (0)