Skip to content

Commit

Permalink
Unify the precedence level for PREC_POSTFIX and PREC_PAREN
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jun 24, 2024
1 parent bcf94de commit 8cfd4b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_ast/src/util/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 8cfd4b1

Please sign in to comment.