Add comment to Abort
match arm
Co-authored-by: Ralf Jung <post@ralfj.de>
This commit is contained in:
parent
25fdbaff44
commit
fe97990e23
@ -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…
x
Reference in New Issue
Block a user