diff options
| author | clubby789 <jamie@hill-daniel.co.uk> | 2023-03-14 17:18:26 +0000 |
|---|---|---|
| committer | clubby789 <jamie@hill-daniel.co.uk> | 2023-03-14 17:18:26 +0000 |
| commit | 9afffc5b61d34d09e8f677dbfca8f283fc7fa697 (patch) | |
| tree | ee86d32f7dd6e6762d7aacb99babb3f8d5d115bc /compiler/rustc_ast/src/util/parser.rs | |
| parent | 669e75163957f8f2408d515ce2da3516cb31f747 (diff) | |
| download | rust-9afffc5b61d34d09e8f677dbfca8f283fc7fa697.tar.gz rust-9afffc5b61d34d09e8f677dbfca8f283fc7fa697.zip | |
Remove box expressions from HIR
Diffstat (limited to 'compiler/rustc_ast/src/util/parser.rs')
| -rw-r--r-- | compiler/rustc_ast/src/util/parser.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_ast/src/util/parser.rs b/compiler/rustc_ast/src/util/parser.rs index 3a0af04f9eb..3893875e9a4 100644 --- a/compiler/rustc_ast/src/util/parser.rs +++ b/compiler/rustc_ast/src/util/parser.rs @@ -259,7 +259,6 @@ pub enum ExprPrecedence { Assign, AssignOp, - Box, AddrOf, Let, Unary, @@ -319,8 +318,7 @@ impl ExprPrecedence { ExprPrecedence::AssignOp => AssocOp::Assign.precedence() as i8, // Unary, prefix - ExprPrecedence::Box - | ExprPrecedence::AddrOf + ExprPrecedence::AddrOf // Here `let pats = expr` has `let pats =` as a "unary" prefix of `expr`. // However, this is not exactly right. When `let _ = a` is the LHS of a binop we // need parens sometimes. E.g. we can print `(let _ = a) && b` as `let _ = a && b` |
