1
Fork 0

Eliminate PREC_FORCE_PAREN

This commit is contained in:
David Tolnay 2024-11-28 13:52:28 -08:00
parent 34a65f203f
commit ca8f47439e
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82
3 changed files with 8 additions and 9 deletions

View file

@ -235,7 +235,6 @@ 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_UNAMBIGUOUS: i8 = 60;
pub const PREC_FORCE_PAREN: i8 = 100;
/// In `let p = e`, operators with precedence `<=` this one requires parentheses in `e`.
pub fn prec_let_scrutinee_needs_par() -> usize {