about summary refs log tree commit diff
path: root/compiler/rustc_passes/src/check_const.rs
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2023-01-11 21:41:13 +0100
committerMara Bos <m-ou.se@m-ou.se>2023-01-12 00:25:45 +0100
commita4dbcb525b2f36f66c89df6919a7506cd99041cc (patch)
tree16d2087b2a8daef1d705c168e05db854902149aa /compiler/rustc_passes/src/check_const.rs
parente83945150f65eaf8b644a4042229fcac4c82596b (diff)
downloadrust-a4dbcb525b2f36f66c89df6919a7506cd99041cc.tar.gz
rust-a4dbcb525b2f36f66c89df6919a7506cd99041cc.zip
Expand format_args!() in rust_ast_lowering.
Diffstat (limited to 'compiler/rustc_passes/src/check_const.rs')
-rw-r--r--compiler/rustc_passes/src/check_const.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_passes/src/check_const.rs b/compiler/rustc_passes/src/check_const.rs
index aa726d6cd92..dd8c646a43c 100644
--- a/compiler/rustc_passes/src/check_const.rs
+++ b/compiler/rustc_passes/src/check_const.rs
@@ -48,7 +48,7 @@ impl NonConstExpr {
             Self::Match(TryDesugar) => &[sym::const_try],
 
             // All other expressions are allowed.
-            Self::Loop(Loop | While) | Self::Match(Normal) => &[],
+            Self::Loop(Loop | While) | Self::Match(Normal | FormatArgs) => &[],
         };
 
         Some(gates)