1
Fork 0

reword message to be less vague

This commit is contained in:
Michael Goulet 2023-06-10 22:41:59 +00:00
parent eb76764ea4
commit 8621285e3b
11 changed files with 23 additions and 23 deletions

View file

@ -4029,7 +4029,7 @@ fn hint_missing_borrow<'tcx>(
if !to_borrow.is_empty() {
err.multipart_suggestion_verbose(
"consider borrowing the argument",
"consider adjusting the signature so it borrows its argument",
to_borrow,
Applicability::MaybeIncorrect,
);
@ -4037,7 +4037,7 @@ fn hint_missing_borrow<'tcx>(
if !remove_borrow.is_empty() {
err.multipart_suggestion_verbose(
"do not borrow the argument",
"consider adjusting the signature so it does not borrow its argument",
remove_borrow,
Applicability::MaybeIncorrect,
);