Skip to content

Commit fe97990

Browse files
Add comment to Abort match arm
Co-authored-by: Ralf Jung <[email protected]>
1 parent 25fdbaf commit fe97990

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_mir/src/transform/check_consts/validation.rs

+1
Original file line numberDiff line numberDiff line change
@@ -882,6 +882,7 @@ impl Visitor<'tcx> for Validator<'mir, 'tcx> {
882882
}
883883

884884
TerminatorKind::Abort => {
885+
// Cleanup blocks are skipped for const checking (see `visit_basic_block_data`).
885886
span_bug!(self.span, "`Abort` terminator outside of cleanup block")
886887
}
887888

0 commit comments

Comments
 (0)