@@ -177,7 +177,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
177
177
buf. push_str ( & self . infcx . tcx . item_name ( * def_id) . to_string ( ) ) ;
178
178
}
179
179
PlaceRef {
180
- ref base,
180
+ base,
181
181
projection : Some ( ref proj) ,
182
182
} => {
183
183
match proj. elem {
@@ -197,7 +197,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
197
197
// FIXME turn this recursion into iteration
198
198
self . append_place_to_string (
199
199
PlaceRef {
200
- base : & base ,
200
+ base,
201
201
projection : & proj. base ,
202
202
} ,
203
203
buf,
@@ -210,7 +210,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
210
210
if self . body . local_decls [ * local] . is_ref_for_guard ( ) {
211
211
self . append_place_to_string (
212
212
PlaceRef {
213
- base : & base ,
213
+ base,
214
214
projection : & proj. base ,
215
215
} ,
216
216
buf,
@@ -222,7 +222,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
222
222
buf. push_str ( & "*" ) ;
223
223
self . append_place_to_string (
224
224
PlaceRef {
225
- base : & base ,
225
+ base,
226
226
projection : & proj. base ,
227
227
} ,
228
228
buf,
@@ -236,7 +236,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
236
236
buf. push_str ( & "*" ) ;
237
237
self . append_place_to_string (
238
238
PlaceRef {
239
- base : & base ,
239
+ base,
240
240
projection : & proj. base ,
241
241
} ,
242
242
buf,
@@ -251,7 +251,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
251
251
ProjectionElem :: Downcast ( ..) => {
252
252
self . append_place_to_string (
253
253
PlaceRef {
254
- base : & base ,
254
+ base,
255
255
projection : & proj. base ,
256
256
} ,
257
257
buf,
@@ -273,12 +273,12 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
273
273
buf. push_str ( & name) ;
274
274
} else {
275
275
let field_name = self . describe_field ( PlaceRef {
276
- base : base ,
276
+ base,
277
277
projection : & proj. base ,
278
278
} , field) ;
279
279
self . append_place_to_string (
280
280
PlaceRef {
281
- base : & base ,
281
+ base,
282
282
projection : & proj. base ,
283
283
} ,
284
284
buf,
@@ -293,7 +293,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
293
293
294
294
self . append_place_to_string (
295
295
PlaceRef {
296
- base : & base ,
296
+ base,
297
297
projection : & proj. base ,
298
298
} ,
299
299
buf,
@@ -313,7 +313,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
313
313
// to avoid confusing the end-user
314
314
self . append_place_to_string (
315
315
PlaceRef {
316
- base : & base ,
316
+ base,
317
317
projection : & proj. base ,
318
318
} ,
319
319
buf,
0 commit comments