Skip to content

Commit 5cd51c0

Browse files
committed
Place comment in the right place
1 parent 701e494 commit 5cd51c0

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

  • compiler/rustc_borrowck/src

compiler/rustc_borrowck/src/lib.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2239,14 +2239,14 @@ impl<'a, 'tcx> MirBorrowckCtxt<'a, '_, 'tcx> {
22392239
// None case => assigning to `x` does not require `x` be initialized.
22402240
for (place_base, elem) in place.iter_projections().rev() {
22412241
match elem {
2242-
ProjectionElem::Index(_/*operand*/) |
2243-
ProjectionElem::OpaqueCast(_) |
2244-
ProjectionElem::ConstantIndex { .. } |
2242+
ProjectionElem::Index(_/*operand*/)
2243+
| ProjectionElem::OpaqueCast(_)
22452244
// assigning to P[i] requires P to be valid.
2246-
ProjectionElem::Downcast(_/*adt_def*/, _/*variant_idx*/) =>
2247-
// assigning to (P->variant) is okay if assigning to `P` is okay
2248-
//
2249-
// FIXME: is this true even if P is an adt with a dtor?
2245+
| ProjectionElem::ConstantIndex { .. }
2246+
// assigning to (P->variant) is okay if assigning to `P` is okay
2247+
//
2248+
// FIXME: is this true even if P is an adt with a dtor?
2249+
| ProjectionElem::Downcast(_/*adt_def*/, _/*variant_idx*/) =>
22502250
{}
22512251

22522252
ProjectionElem::UnwrapUnsafeBinder(_) => {

0 commit comments

Comments
 (0)