diff options
| author | David Tolnay <dtolnay@gmail.com> | 2024-06-23 18:29:51 -0700 |
|---|---|---|
| committer | David Tolnay <dtolnay@gmail.com> | 2024-06-23 18:29:51 -0700 |
| commit | 8cfd4b180b33695a2e24e74ce4864b3b4bf6a302 (patch) | |
| tree | 03abe309d67a76e019d03e560b782641b12ec32e /compiler/rustc_ast/src/util/parser.rs | |
| parent | bcf94dec5ba6838e435902120c0384c360126a26 (diff) | |
| download | rust-8cfd4b180b33695a2e24e74ce4864b3b4bf6a302.tar.gz rust-8cfd4b180b33695a2e24e74ce4864b3b4bf6a302.zip | |
Unify the precedence level for PREC_POSTFIX and PREC_PAREN
Diffstat (limited to 'compiler/rustc_ast/src/util/parser.rs')
| -rw-r--r-- | compiler/rustc_ast/src/util/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast/src/util/parser.rs b/compiler/rustc_ast/src/util/parser.rs index 373c0ebcc5c..900040b8bd9 100644 --- a/compiler/rustc_ast/src/util/parser.rs +++ b/compiler/rustc_ast/src/util/parser.rs @@ -234,7 +234,7 @@ pub const PREC_RANGE: i8 = -10; // The range 2..=14 is reserved for AssocOp binary operator precedences. pub const PREC_PREFIX: i8 = 50; pub const PREC_POSTFIX: i8 = 60; -pub const PREC_PAREN: i8 = 99; +pub const PREC_PAREN: i8 = 60; pub const PREC_FORCE_PAREN: i8 = 100; #[derive(Debug, Clone, Copy)] |
