Skip to content

Commit e5b58b0

Browse files
Note that some terminators should cause an error
1 parent d24e39b commit e5b58b0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustc_mir/transform/check_consts/validation.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,8 @@ impl Visitor<'tcx> for Validator<'_, 'mir, 'tcx> {
580580
}
581581
}
582582

583+
// FIXME: Some of these are only caught by `min_const_fn`, but should error here
584+
// instead.
583585
TerminatorKind::Abort
584586
| TerminatorKind::Assert { .. }
585587
| TerminatorKind::FalseEdges { .. }

0 commit comments

Comments
 (0)