Unify the precedence level for PREC_POSTFIX and PREC_PAREN

This commit is contained in:
David Tolnay 2024-06-23 18:29:51 -07:00
parent bcf94dec5b
commit 8cfd4b180b
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

View file

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