@@ -98,26 +98,26 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
98
98
& lt,
99
99
Rvalue :: BinaryOp (
100
100
BinOp :: Lt ,
101
- Operand :: Copy ( Place :: Base ( PlaceBase :: Local ( idx) ) ) ,
101
+ Operand :: Copy ( Place :: from ( idx) ) ,
102
102
Operand :: Copy ( len. clone ( ) ) ,
103
103
) ,
104
104
) ;
105
105
106
106
let msg = BoundsCheck {
107
107
len : Operand :: Move ( len) ,
108
- index : Operand :: Copy ( Place :: Base ( PlaceBase :: Local ( idx) ) ) ,
108
+ index : Operand :: Copy ( Place :: from ( idx) ) ,
109
109
} ;
110
110
let success = this. assert ( block, Operand :: Move ( lt) , true , msg, expr_span) ;
111
111
success. and ( slice. index ( idx) )
112
112
}
113
- ExprKind :: SelfRef => block. and ( Place :: Base ( PlaceBase :: Local ( Local :: new ( 1 ) ) ) ) ,
113
+ ExprKind :: SelfRef => block. and ( Place :: from ( Local :: new ( 1 ) ) ) ,
114
114
ExprKind :: VarRef { id } => {
115
115
let place = if this. is_bound_var_in_guard ( id) {
116
116
let index = this. var_local_id ( id, RefWithinGuard ) ;
117
- Place :: Base ( PlaceBase :: Local ( index) ) . deref ( )
117
+ Place :: from ( index) . deref ( )
118
118
} else {
119
119
let index = this. var_local_id ( id, OutsideGuard ) ;
120
- Place :: Base ( PlaceBase :: Local ( index) )
120
+ Place :: from ( index)
121
121
} ;
122
122
block. and ( place)
123
123
}
@@ -168,14 +168,14 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
168
168
Statement {
169
169
source_info,
170
170
kind : StatementKind :: AscribeUserType (
171
- Place :: Base ( PlaceBase :: Local ( temp. clone ( ) ) ) ,
171
+ Place :: from ( temp. clone ( ) ) ,
172
172
Variance :: Invariant ,
173
173
box UserTypeProjection { base : annotation_index, projs : vec ! [ ] , } ,
174
174
) ,
175
175
} ,
176
176
) ;
177
177
}
178
- block. and ( Place :: Base ( PlaceBase :: Local ( temp) ) )
178
+ block. and ( Place :: from ( temp) )
179
179
}
180
180
181
181
ExprKind :: Array { .. }
@@ -211,7 +211,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
211
211
} ) ;
212
212
let temp =
213
213
unpack ! ( block = this. as_temp( block, expr. temp_lifetime, expr, mutability) ) ;
214
- block. and ( Place :: Base ( PlaceBase :: Local ( temp) ) )
214
+ block. and ( Place :: from ( temp) )
215
215
}
216
216
}
217
217
}
0 commit comments