File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -386,14 +386,7 @@ impl<'tcx> Mirror<'tcx> for &'tcx hir::Expr {
386
386
} ;
387
387
}
388
388
389
- if let Some ( target) = adj. unsize {
390
- expr = Expr {
391
- temp_lifetime : temp_lifetime,
392
- ty : target,
393
- span : self . span ,
394
- kind : ExprKind :: Unsize { source : expr. to_ref ( ) } ,
395
- } ;
396
- } else if let Some ( autoref) = adj. autoref {
389
+ if let Some ( autoref) = adj. autoref {
397
390
let adjusted_ty = expr. ty . adjust_for_autoref ( cx. tcx , Some ( autoref) ) ;
398
391
match autoref {
399
392
ty:: adjustment:: AutoPtr ( r, m) => {
@@ -433,6 +426,15 @@ impl<'tcx> Mirror<'tcx> for &'tcx hir::Expr {
433
426
}
434
427
}
435
428
}
429
+
430
+ if let Some ( target) = adj. unsize {
431
+ expr = Expr {
432
+ temp_lifetime : temp_lifetime,
433
+ ty : target,
434
+ span : self . span ,
435
+ kind : ExprKind :: Unsize { source : expr. to_ref ( ) } ,
436
+ } ;
437
+ }
436
438
}
437
439
}
438
440
You can’t perform that action at this time.
0 commit comments