]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_passes/src/check_const.rs
Auto merge of #106916 - lukas-code:overlapping-substs, r=estebank
[rust.git] / compiler / rustc_passes / src / check_const.rs
index aa726d6cd92aad0b9a7ce3374f23c64c944fe7d1..dd8c646a43c82e837b0393155f7660931147e0d1 100644 (file)
@@ -48,7 +48,7 @@ fn required_feature_gates(self) -> Option<&'static [Symbol]> {
             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)