diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2023-01-11 21:41:13 +0100 | 
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2023-01-12 00:25:45 +0100 | 
| commit | a4dbcb525b2f36f66c89df6919a7506cd99041cc (patch) | |
| tree | 16d2087b2a8daef1d705c168e05db854902149aa /compiler/rustc_ast/src/util/parser.rs | |
| parent | e83945150f65eaf8b644a4042229fcac4c82596b (diff) | |
| download | rust-a4dbcb525b2f36f66c89df6919a7506cd99041cc.tar.gz rust-a4dbcb525b2f36f66c89df6919a7506cd99041cc.zip | |
Expand format_args!() in rust_ast_lowering.
Diffstat (limited to 'compiler/rustc_ast/src/util/parser.rs')
| -rw-r--r-- | compiler/rustc_ast/src/util/parser.rs | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/compiler/rustc_ast/src/util/parser.rs b/compiler/rustc_ast/src/util/parser.rs index 819f1884a06..2db2ab5e811 100644 --- a/compiler/rustc_ast/src/util/parser.rs +++ b/compiler/rustc_ast/src/util/parser.rs @@ -271,6 +271,7 @@ pub enum ExprPrecedence { Try, InlineAsm, Mac, + FormatArgs, Array, Repeat, @@ -335,7 +336,8 @@ impl ExprPrecedence { | ExprPrecedence::Index | ExprPrecedence::Try | ExprPrecedence::InlineAsm - | ExprPrecedence::Mac => PREC_POSTFIX, + | ExprPrecedence::Mac + | ExprPrecedence::FormatArgs => PREC_POSTFIX, // Never need parens ExprPrecedence::Array | 
