@@ -799,7 +799,7 @@ pub enum StatementKind<'tcx> {
799
799
StorageDead ( Lvalue < ' tcx > ) ,
800
800
801
801
InlineAsm {
802
- asm : InlineAsm ,
802
+ asm : Box < InlineAsm > ,
803
803
outputs : Vec < Lvalue < ' tcx > > ,
804
804
inputs : Vec < Operand < ' tcx > >
805
805
} ,
@@ -995,7 +995,7 @@ pub struct VisibilityScopeData {
995
995
#[ derive( Clone , PartialEq , RustcEncodable , RustcDecodable ) ]
996
996
pub enum Operand < ' tcx > {
997
997
Consume ( Lvalue < ' tcx > ) ,
998
- Constant ( Constant < ' tcx > ) ,
998
+ Constant ( Box < Constant < ' tcx > > ) ,
999
999
}
1000
1000
1001
1001
impl < ' tcx > Debug for Operand < ' tcx > {
@@ -1015,7 +1015,7 @@ impl<'tcx> Operand<'tcx> {
1015
1015
substs : & ' tcx Substs < ' tcx > ,
1016
1016
span : Span ,
1017
1017
) -> Self {
1018
- Operand :: Constant ( Constant {
1018
+ Operand :: Constant ( box Constant {
1019
1019
span : span,
1020
1020
ty : tcx. type_of ( def_id) . subst ( tcx, substs) ,
1021
1021
literal : Literal :: Value { value : ConstVal :: Function ( def_id, substs) } ,
@@ -1062,7 +1062,7 @@ pub enum Rvalue<'tcx> {
1062
1062
/// ..., y: ... }` from `dest.x = ...; dest.y = ...;` in the case
1063
1063
/// that `Foo` has a destructor. These rvalues can be optimized
1064
1064
/// away after type-checking and before lowering.
1065
- Aggregate ( AggregateKind < ' tcx > , Vec < Operand < ' tcx > > ) ,
1065
+ Aggregate ( Box < AggregateKind < ' tcx > > , Vec < Operand < ' tcx > > ) ,
1066
1066
}
1067
1067
1068
1068
#[ derive( Clone , Copy , Debug , PartialEq , Eq , RustcEncodable , RustcDecodable ) ]
@@ -1185,7 +1185,7 @@ impl<'tcx> Debug for Rvalue<'tcx> {
1185
1185
tuple_fmt. finish ( )
1186
1186
}
1187
1187
1188
- match * kind {
1188
+ match * * kind {
1189
1189
AggregateKind :: Array ( _) => write ! ( fmt, "{:?}" , lvs) ,
1190
1190
1191
1191
AggregateKind :: Tuple => {
@@ -1603,7 +1603,7 @@ impl<'tcx> TypeFoldable<'tcx> for Rvalue<'tcx> {
1603
1603
Discriminant ( ref lval) => Discriminant ( lval. fold_with ( folder) ) ,
1604
1604
Box ( ty) => Box ( ty. fold_with ( folder) ) ,
1605
1605
Aggregate ( ref kind, ref fields) => {
1606
- let kind = match * kind {
1606
+ let kind = box match * * kind {
1607
1607
AggregateKind :: Array ( ty) => AggregateKind :: Array ( ty. fold_with ( folder) ) ,
1608
1608
AggregateKind :: Tuple => AggregateKind :: Tuple ,
1609
1609
AggregateKind :: Adt ( def, v, substs, n) =>
@@ -1631,7 +1631,7 @@ impl<'tcx> TypeFoldable<'tcx> for Rvalue<'tcx> {
1631
1631
Discriminant ( ref lval) => lval. visit_with ( visitor) ,
1632
1632
Box ( ty) => ty. visit_with ( visitor) ,
1633
1633
Aggregate ( ref kind, ref fields) => {
1634
- ( match * kind {
1634
+ ( match * * kind {
1635
1635
AggregateKind :: Array ( ty) => ty. visit_with ( visitor) ,
1636
1636
AggregateKind :: Tuple => false ,
1637
1637
AggregateKind :: Adt ( _, _, substs, _) => substs. visit_with ( visitor) ,
0 commit comments