Expand format_args!() in rust_ast_lowering.

This commit is contained in:
Mara Bos
2023-01-11 21:41:13 +01:00
parent e83945150f
commit a4dbcb525b
19 changed files with 535 additions and 384 deletions

View File

@@ -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)