@@ -901,10 +901,10 @@ pub enum StatementKind<'tcx> {
901
901
SetDiscriminant { lvalue : Lvalue < ' tcx > , variant_index : usize } ,
902
902
903
903
/// Start a live range for the storage of the local.
904
- StorageLive ( Lvalue < ' tcx > ) ,
904
+ StorageLive ( Local ) ,
905
905
906
906
/// End the current live range for the storage of the local.
907
- StorageDead ( Lvalue < ' tcx > ) ,
907
+ StorageDead ( Local ) ,
908
908
909
909
/// Execute a piece of inline Assembly.
910
910
InlineAsm {
@@ -1701,8 +1701,8 @@ impl<'tcx> TypeFoldable<'tcx> for Statement<'tcx> {
1701
1701
lvalue : lvalue. fold_with ( folder) ,
1702
1702
variant_index,
1703
1703
} ,
1704
- StorageLive ( ref lval ) => StorageLive ( lval . fold_with ( folder) ) ,
1705
- StorageDead ( ref lval ) => StorageDead ( lval . fold_with ( folder) ) ,
1704
+ StorageLive ( ref local ) => StorageLive ( local . fold_with ( folder) ) ,
1705
+ StorageDead ( ref local ) => StorageDead ( local . fold_with ( folder) ) ,
1706
1706
InlineAsm { ref asm, ref outputs, ref inputs } => InlineAsm {
1707
1707
asm : asm. clone ( ) ,
1708
1708
outputs : outputs. fold_with ( folder) ,
@@ -1732,9 +1732,9 @@ impl<'tcx> TypeFoldable<'tcx> for Statement<'tcx> {
1732
1732
1733
1733
match self . kind {
1734
1734
Assign ( ref lval, ref rval) => { lval. visit_with ( visitor) || rval. visit_with ( visitor) }
1735
- SetDiscriminant { ref lvalue, .. } |
1736
- StorageLive ( ref lvalue ) |
1737
- StorageDead ( ref lvalue ) => lvalue . visit_with ( visitor) ,
1735
+ SetDiscriminant { ref lvalue, .. } => lvalue . visit_with ( visitor ) ,
1736
+ StorageLive ( ref local ) |
1737
+ StorageDead ( ref local ) => local . visit_with ( visitor) ,
1738
1738
InlineAsm { ref outputs, ref inputs, .. } =>
1739
1739
outputs. visit_with ( visitor) || inputs. visit_with ( visitor) ,
1740
1740
0 commit comments