@@ -1673,7 +1673,6 @@ pub struct Expr<'hir> {
1673
1673
impl Expr < ' _ > {
1674
1674
pub fn precedence ( & self ) -> ExprPrecedence {
1675
1675
match self . kind {
1676
- ExprKind :: Box ( _) => ExprPrecedence :: Box ,
1677
1676
ExprKind :: ConstBlock ( _) => ExprPrecedence :: ConstBlock ,
1678
1677
ExprKind :: Array ( _) => ExprPrecedence :: Array ,
1679
1678
ExprKind :: Call ( ..) => ExprPrecedence :: Call ,
@@ -1763,7 +1762,6 @@ impl Expr<'_> {
1763
1762
| ExprKind :: Lit ( _)
1764
1763
| ExprKind :: ConstBlock ( ..)
1765
1764
| ExprKind :: Unary ( ..)
1766
- | ExprKind :: Box ( ..)
1767
1765
| ExprKind :: AddrOf ( ..)
1768
1766
| ExprKind :: Binary ( ..)
1769
1767
| ExprKind :: Yield ( ..)
@@ -1851,7 +1849,6 @@ impl Expr<'_> {
1851
1849
| ExprKind :: InlineAsm ( ..)
1852
1850
| ExprKind :: AssignOp ( ..)
1853
1851
| ExprKind :: ConstBlock ( ..)
1854
- | ExprKind :: Box ( ..)
1855
1852
| ExprKind :: Binary ( ..)
1856
1853
| ExprKind :: Yield ( ..)
1857
1854
| ExprKind :: DropTemps ( ..)
@@ -1862,8 +1859,7 @@ impl Expr<'_> {
1862
1859
/// To a first-order approximation, is this a pattern?
1863
1860
pub fn is_approximately_pattern ( & self ) -> bool {
1864
1861
match & self . kind {
1865
- ExprKind :: Box ( _)
1866
- | ExprKind :: Array ( _)
1862
+ ExprKind :: Array ( _)
1867
1863
| ExprKind :: Call ( ..)
1868
1864
| ExprKind :: Tup ( _)
1869
1865
| ExprKind :: Lit ( _)
@@ -1910,8 +1906,6 @@ pub fn is_range_literal(expr: &Expr<'_>) -> bool {
1910
1906
1911
1907
#[ derive( Debug , HashStable_Generic ) ]
1912
1908
pub enum ExprKind < ' hir > {
1913
- /// A `box x` expression.
1914
- Box ( & ' hir Expr < ' hir > ) ,
1915
1909
/// Allow anonymous constants from an inline `const` block
1916
1910
ConstBlock ( AnonConst ) ,
1917
1911
/// An array (e.g., `[a, b, c, d]`).
0 commit comments