From 6752a7dc6dcf71f08c28278179e77cb8b204d12c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Sun, 25 Jun 2023 23:16:00 +0200 Subject: [PATCH] make custom mir ICE a bit nicer --- compiler/rustc_mir_build/src/build/custom/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_mir_build/src/build/custom/mod.rs b/compiler/rustc_mir_build/src/build/custom/mod.rs index 32c618828c9b2..715d8dc7ddf6b 100644 --- a/compiler/rustc_mir_build/src/build/custom/mod.rs +++ b/compiler/rustc_mir_build/src/build/custom/mod.rs @@ -118,7 +118,7 @@ fn parse_attribute(attr: &Attribute) -> MirPhase { phase = Some(value); } other => { - panic!("Unexpected key {}", other); + bug!("Unexpected key while parsing custom_mir attribute: '{}'", other); } } }