Note that some terminators should cause an error
This commit is contained in:
parent
d24e39bb91
commit
e5b58b089e
1 changed files with 2 additions and 0 deletions
|
|
@ -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 { .. }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue