Remove hint
from help message
This commit is contained in:
parent
e50f5756aa
commit
e326e8c885
4 changed files with 22 additions and 22 deletions
|
@ -1811,11 +1811,11 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
|
|||
|
||||
if found_ty == expected_ty {
|
||||
let hint = if found_refs < expected_refs {
|
||||
"hint: consider borrowing here:"
|
||||
"consider borrowing here:"
|
||||
} else if found_refs == expected_refs {
|
||||
continue;
|
||||
} else {
|
||||
"hint: consider removing the borrow:"
|
||||
"consider removing the borrow:"
|
||||
};
|
||||
err.span_suggestion_verbose(
|
||||
arg_span,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue