about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src
diff options
context:
space:
mode:
authorJakob Degen <jakob.e.degen@gmail.com>2022-03-26 20:46:56 -0400
committerJakob Degen <jakob.e.degen@gmail.com>2022-04-11 15:22:32 -0400
commit411ae6f5ad7d3b4488f280b7bea8498eb1b0d041 (patch)
tree9178040eb5dd4be7717d74564fcb86a06f2edcab /compiler/rustc_const_eval/src
parent1d318e42e75b959a45be28efcc5069408c228714 (diff)
downloadrust-411ae6f5ad7d3b4488f280b7bea8498eb1b0d041.tar.gz
rust-411ae6f5ad7d3b4488f280b7bea8498eb1b0d041.zip
Address various comments and change some details around place to value conversions
Diffstat (limited to 'compiler/rustc_const_eval/src')
-rw-r--r--compiler/rustc_const_eval/src/transform/validate.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/transform/validate.rs b/compiler/rustc_const_eval/src/transform/validate.rs
index 4358ec2fff7..f153c613f8c 100644
--- a/compiler/rustc_const_eval/src/transform/validate.rs
+++ b/compiler/rustc_const_eval/src/transform/validate.rs
@@ -697,7 +697,7 @@ impl<'a, 'tcx> Visitor<'tcx> for TypeChecker<'a, 'tcx> {
             TerminatorKind::Resume | TerminatorKind::Abort => {
                 let bb = location.block;
                 if !self.body.basic_blocks()[bb].is_cleanup {
-                    self.fail(location, "Cannot `Resume` from non-cleanup basic block")
+                    self.fail(location, "Cannot `Resume` or `Abort` from non-cleanup basic block")
                 }
             }
             TerminatorKind::Return => {