@@ -1673,7 +1673,6 @@ pub struct Expr<'hir> {
16731673impl Expr < ' _ > {
16741674 pub fn precedence ( & self ) -> ExprPrecedence {
16751675 match self . kind {
1676- ExprKind :: Box ( _) => ExprPrecedence :: Box ,
16771676 ExprKind :: ConstBlock ( _) => ExprPrecedence :: ConstBlock ,
16781677 ExprKind :: Array ( _) => ExprPrecedence :: Array ,
16791678 ExprKind :: Call ( ..) => ExprPrecedence :: Call ,
@@ -1763,7 +1762,6 @@ impl Expr<'_> {
17631762 | ExprKind :: Lit ( _)
17641763 | ExprKind :: ConstBlock ( ..)
17651764 | ExprKind :: Unary ( ..)
1766- | ExprKind :: Box ( ..)
17671765 | ExprKind :: AddrOf ( ..)
17681766 | ExprKind :: Binary ( ..)
17691767 | ExprKind :: Yield ( ..)
@@ -1851,7 +1849,6 @@ impl Expr<'_> {
18511849 | ExprKind :: InlineAsm ( ..)
18521850 | ExprKind :: AssignOp ( ..)
18531851 | ExprKind :: ConstBlock ( ..)
1854- | ExprKind :: Box ( ..)
18551852 | ExprKind :: Binary ( ..)
18561853 | ExprKind :: Yield ( ..)
18571854 | ExprKind :: DropTemps ( ..)
@@ -1862,8 +1859,7 @@ impl Expr<'_> {
18621859 /// To a first-order approximation, is this a pattern?
18631860 pub fn is_approximately_pattern ( & self ) -> bool {
18641861 match & self . kind {
1865- ExprKind :: Box ( _)
1866- | ExprKind :: Array ( _)
1862+ ExprKind :: Array ( _)
18671863 | ExprKind :: Call ( ..)
18681864 | ExprKind :: Tup ( _)
18691865 | ExprKind :: Lit ( _)
@@ -1910,8 +1906,6 @@ pub fn is_range_literal(expr: &Expr<'_>) -> bool {
19101906
19111907#[ derive( Debug , HashStable_Generic ) ]
19121908pub enum ExprKind < ' hir > {
1913- /// A `box x` expression.
1914- Box ( & ' hir Expr < ' hir > ) ,
19151909 /// Allow anonymous constants from an inline `const` block
19161910 ConstBlock ( AnonConst ) ,
19171911 /// An array (e.g., `[a, b, c, d]`).
0 commit comments