Skip to content

Commit 80a679e

Browse files
committed
rustc_borrowck: suggest_make_local_mut(): label -> suggestions
The name 'label' doesn't make sense to me. Rename to 'suggestions' so that it makes more sense.
1 parent 1f3bf23 commit 80a679e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_borrowck/src/diagnostics/mutability_errors.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ impl<'infcx, 'tcx> MirBorrowckCtxt<'_, 'infcx, 'tcx> {
11001100
}
11011101
let decl_span = local_decl.source_info.span;
11021102

1103-
let label = match *local_decl.local_info() {
1103+
let suggestions = match *local_decl.local_info() {
11041104
LocalInfo::User(mir::BindingForm::ImplicitSelf(_)) => {
11051105
let suggestion = suggest_ampmut_self(self.infcx.tcx, decl_span);
11061106
let additional =
@@ -1194,7 +1194,7 @@ impl<'infcx, 'tcx> MirBorrowckCtxt<'_, 'infcx, 'tcx> {
11941194
_ => unreachable!(),
11951195
};
11961196

1197-
match label {
1197+
match suggestions {
11981198
Some((true, err_help_span, suggested_code, additional)) => {
11991199
let mut sugg = vec![(err_help_span, suggested_code)];
12001200
if let Some(s) = additional {

0 commit comments

Comments
 (0)