Skip to content

Commit 3ac920f

Browse files
Use exhaustive matching
1 parent 168ca9a commit 3ac920f

File tree

1 file changed

+10
-1
lines changed
  • src/librustc_mir/borrow_check

1 file changed

+10
-1
lines changed

src/librustc_mir/borrow_check/mod.rs

+10-1
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,16 @@ impl<'cx, 'tcx> dataflow::generic::ResultsVisitor<'cx, 'tcx> for MirBorrowckCtxt
712712
}
713713
}
714714

715-
_ => {}
715+
TerminatorKind::Abort
716+
| TerminatorKind::Assert { .. }
717+
| TerminatorKind::Call { .. }
718+
| TerminatorKind::Drop { .. }
719+
| TerminatorKind::DropAndReplace { .. }
720+
| TerminatorKind::FalseEdges { real_target: _, imaginary_target: _ }
721+
| TerminatorKind::FalseUnwind { real_target: _, unwind: _ }
722+
| TerminatorKind::Goto { .. }
723+
| TerminatorKind::SwitchInt { .. }
724+
| TerminatorKind::Unreachable => {}
716725
}
717726
}
718727
}

0 commit comments

Comments
 (0)