mirror of
https://github.com/rust-lang/rust
synced 2024-10-14 12:33:57 +00:00
Unify the precedence level for PREC_POSTFIX and PREC_PAREN
This commit is contained in:
parent
bcf94dec5b
commit
8cfd4b180b
|
@ -234,7 +234,7 @@ pub fn can_continue_expr_unambiguously(&self) -> bool {
|
|||
// 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)]
|
||||
|
|
Loading…
Reference in a new issue