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