@@ -98,26 +98,26 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
9898 & lt,
9999 Rvalue :: BinaryOp (
100100 BinOp :: Lt ,
101- Operand :: Copy ( Place :: Base ( PlaceBase :: Local ( idx) ) ) ,
101+ Operand :: Copy ( Place :: from ( idx) ) ,
102102 Operand :: Copy ( len. clone ( ) ) ,
103103 ) ,
104104 ) ;
105105
106106 let msg = BoundsCheck {
107107 len : Operand :: Move ( len) ,
108- index : Operand :: Copy ( Place :: Base ( PlaceBase :: Local ( idx) ) ) ,
108+ index : Operand :: Copy ( Place :: from ( idx) ) ,
109109 } ;
110110 let success = this. assert ( block, Operand :: Move ( lt) , true , msg, expr_span) ;
111111 success. and ( slice. index ( idx) )
112112 }
113- ExprKind :: SelfRef => block. and ( Place :: Base ( PlaceBase :: Local ( Local :: new ( 1 ) ) ) ) ,
113+ ExprKind :: SelfRef => block. and ( Place :: from ( Local :: new ( 1 ) ) ) ,
114114 ExprKind :: VarRef { id } => {
115115 let place = if this. is_bound_var_in_guard ( id) {
116116 let index = this. var_local_id ( id, RefWithinGuard ) ;
117- Place :: Base ( PlaceBase :: Local ( index) ) . deref ( )
117+ Place :: from ( index) . deref ( )
118118 } else {
119119 let index = this. var_local_id ( id, OutsideGuard ) ;
120- Place :: Base ( PlaceBase :: Local ( index) )
120+ Place :: from ( index)
121121 } ;
122122 block. and ( place)
123123 }
@@ -168,14 +168,14 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
168168 Statement {
169169 source_info,
170170 kind : StatementKind :: AscribeUserType (
171- Place :: Base ( PlaceBase :: Local ( temp. clone ( ) ) ) ,
171+ Place :: from ( temp. clone ( ) ) ,
172172 Variance :: Invariant ,
173173 box UserTypeProjection { base : annotation_index, projs : vec ! [ ] , } ,
174174 ) ,
175175 } ,
176176 ) ;
177177 }
178- block. and ( Place :: Base ( PlaceBase :: Local ( temp) ) )
178+ block. and ( Place :: from ( temp) )
179179 }
180180
181181 ExprKind :: Array { .. }
@@ -211,7 +211,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
211211 } ) ;
212212 let temp =
213213 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) )
215215 }
216216 }
217217 }
0 commit comments