@@ -1989,10 +1989,8 @@ impl<'a, 'tcx> MirBorrowckCtxt<'a, '_, 'tcx> {
1989
1989
} ,
1990
1990
// `OpaqueCast`: only transmutes the type, so no moves there.
1991
1991
// `Downcast` : only changes information about a `Place` without moving.
1992
- // `Subtype` : only transmutes the type, so no moves.
1993
1992
// So it's safe to skip these.
1994
1993
ProjectionElem :: OpaqueCast ( _)
1995
- | ProjectionElem :: Subtype ( _)
1996
1994
| ProjectionElem :: Downcast ( _, _)
1997
1995
| ProjectionElem :: UnwrapUnsafeBinder ( _) => ( ) ,
1998
1996
}
@@ -2218,7 +2216,6 @@ impl<'a, 'tcx> MirBorrowckCtxt<'a, '_, 'tcx> {
2218
2216
for ( place_base, elem) in place. iter_projections ( ) . rev ( ) {
2219
2217
match elem {
2220
2218
ProjectionElem :: Index ( _/*operand*/ ) |
2221
- ProjectionElem :: Subtype ( _) |
2222
2219
ProjectionElem :: OpaqueCast ( _) |
2223
2220
ProjectionElem :: ConstantIndex { .. } |
2224
2221
// assigning to P[i] requires P to be valid.
@@ -2610,7 +2607,6 @@ impl<'a, 'tcx> MirBorrowckCtxt<'a, '_, 'tcx> {
2610
2607
| ProjectionElem :: Index ( ..)
2611
2608
| ProjectionElem :: ConstantIndex { .. }
2612
2609
| ProjectionElem :: Subslice { .. }
2613
- | ProjectionElem :: Subtype ( ..)
2614
2610
| ProjectionElem :: OpaqueCast { .. }
2615
2611
| ProjectionElem :: Downcast ( ..)
2616
2612
| ProjectionElem :: UnwrapUnsafeBinder ( _) => {
0 commit comments