summary refs log tree commit diff
path: root/compiler/rustc_span/src
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2023-02-01 17:39:14 +0100
committerMara Bos <m-ou.se@m-ou.se>2023-03-16 11:21:50 +0100
commitf2f6bcc4998c6f2a2e044bac428a7ca16028c148 (patch)
treeca515130d8ac8165a049aa86af09dd5b6387b238 /compiler/rustc_span/src
parent96d252160ea80dfa1cb26acc174a31cf94a09520 (diff)
downloadrust-f2f6bcc4998c6f2a2e044bac428a7ca16028c148.tar.gz
rust-f2f6bcc4998c6f2a2e044bac428a7ca16028c148.zip
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").
Diffstat (limited to 'compiler/rustc_span/src')
-rw-r--r--compiler/rustc_span/src/symbol.rs1
1 files changed, 1 insertions, 0 deletions
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,