Note that some terminators should cause an error

This commit is contained in:
Dylan MacKenzie 2020-04-19 16:20:06 -07:00
parent d24e39bb91
commit e5b58b089e

View file

@ -580,6 +580,8 @@ impl Visitor<'tcx> for Validator<'_, 'mir, 'tcx> {
}
}
// FIXME: Some of these are only caught by `min_const_fn`, but should error here
// instead.
TerminatorKind::Abort
| TerminatorKind::Assert { .. }
| TerminatorKind::FalseEdges { .. }