X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_passes%2Fsrc%2Fcheck_const.rs;h=dd8c646a43c82e837b0393155f7660931147e0d1;hb=eb5e63e3f0144d145e85bc0677ea49b97b491896;hp=aa726d6cd92aad0b9a7ce3374f23c64c944fe7d1;hpb=a24a020e6d926dffe6b472fc647978f92269504e;p=rust.git 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 @@ 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)