Add comment to Abort
match arm
Co-authored-by: Ralf Jung <post@ralfj.de>
This commit is contained in:
parent
25fdbaff44
commit
fe97990e23
1 changed files with 1 additions and 0 deletions
|
@ -882,6 +882,7 @@ impl Visitor<'tcx> for Validator<'mir, 'tcx> {
|
|||
}
|
||||
|
||||
TerminatorKind::Abort => {
|
||||
// Cleanup blocks are skipped for const checking (see `visit_basic_block_data`).
|
||||
span_bug!(self.span, "`Abort` terminator outside of cleanup block")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue