Skip to content

Commit d2608df

Browse files
Ezrashawestebank
andcommitted
implement review comment
Co-authored-by: Esteban Kuber <[email protected]>
1 parent 87a1b38 commit d2608df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_borrowck/src/diagnostics/mutability_errors.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1268,9 +1268,9 @@ fn suggest_ampmut<'tcx>(
12681268
// shrink the span to just after the `&` in `&variable`
12691269
let span = span.with_lo(span.lo() + BytePos(1)).shrink_to_lo();
12701270
(true, span, "mut ".to_owned())
1271-
// otherwise, suggest that the user annotates the binding; we provide the
1272-
// type of the local.
12731271
} else {
1272+
// otherwise, suggest that the user annotates the binding; we provide the
1273+
// type of the local.
12741274
let ty_mut = local_decl.ty.builtin_deref(true).unwrap();
12751275
assert_eq!(ty_mut.mutbl, hir::Mutability::Not);
12761276

0 commit comments

Comments
 (0)