Skip to content

Commit 8febc06

Browse files
committed
wip
1 parent cd106c5 commit 8febc06

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

compiler/rustc_mir_dataflow/src/impls/initialized2.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,7 @@ 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-
};
139+
let sparse_idx = unsafe { SparseMovePathIndex::from_u32_unchecked(idx as u32) };
142140
// let sparse_idx = SparseMovePathIndex::from_u32(idx.try_into().unwrap());
143141
sparse_map.insert(dense_idx, sparse_idx);
144142
}

0 commit comments

Comments
 (0)