Skip to content

Commit 45efd9c

Browse files
committed
remove some amusing but redundant code
1 parent e9e6e2e commit 45efd9c

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

compiler/rustc_mir_transform/src/dataflow_const_prop.rs

-5
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,6 @@ impl<'tcx> ValueAnalysis<'tcx> for ConstAnalysis<'_, 'tcx> {
181181
state.insert_value_idx(value_target, val, self.map());
182182
}
183183
if let Some(overflow_target) = overflow_target {
184-
let overflow = match overflow {
185-
FlatSet::Top => FlatSet::Top,
186-
FlatSet::Elem(overflow) => FlatSet::Elem(overflow),
187-
FlatSet::Bottom => FlatSet::Bottom,
188-
};
189184
// We have flooded `target` earlier.
190185
state.insert_value_idx(overflow_target, overflow, self.map());
191186
}

0 commit comments

Comments
 (0)