We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd74026 commit 60d7d28Copy full SHA for 60d7d28
src/librustc_mir/transform/match_branches.rs
@@ -16,7 +16,7 @@ impl<'tcx> MirPass<'tcx> for MatchBranchSimplification {
16
'outer: for bb_idx in bbs.indices() {
17
let (discr, val, switch_ty, first, second) = match bbs[bb_idx].terminator().kind {
18
TerminatorKind::SwitchInt {
19
- discr: Operand::Move(ref place),
+ discr: Operand::Copy(ref place) | Operand::Move(ref place),
20
switch_ty,
21
ref targets,
22
ref values,
0 commit comments