change error message
This commit is contained in:
parent
b1d7430657
commit
7822822d51
5 changed files with 26 additions and 22 deletions
|
@ -3449,11 +3449,11 @@ fn hint_missing_borrow<'tcx>(
|
|||
|
||||
if found_ty == expected_ty {
|
||||
let hint = if found_refs < expected_refs {
|
||||
"consider borrowing here:"
|
||||
"consider borrowing the argument"
|
||||
} else if found_refs == expected_refs {
|
||||
continue;
|
||||
} else {
|
||||
"consider removing the borrow:"
|
||||
"do not borrow the argument"
|
||||
};
|
||||
err.span_suggestion_verbose(
|
||||
arg_span,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue