From f2f6bcc4998c6f2a2e044bac428a7ca16028c148 Mon Sep 17 00:00:00 2001 From: Mara Bos Date: Wed, 1 Feb 2023 17:39:14 +0100 Subject: Don't allow new const panic through format flattening. panic!("a {}", "b") is still not allowed in const, even if the hir flattens to panic!("a b"). --- compiler/rustc_span/src/symbol.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/rustc_span/src') diff --git a/compiler/rustc_span/src/symbol.rs b/compiler/rustc_span/src/symbol.rs index 0154c719ef6..abe5af8f9e0 100644 --- a/compiler/rustc_span/src/symbol.rs +++ b/compiler/rustc_span/src/symbol.rs @@ -984,6 +984,7 @@ symbols! { never_type_fallback, new, new_binary, + new_const, new_debug, new_display, new_lower_exp, -- cgit 1.4.1-3-g733a5