1
Fork 0

Remove hint from help message

This commit is contained in:
akida31 2022-10-09 10:07:47 +02:00
parent e50f5756aa
commit e326e8c885
No known key found for this signature in database
GPG key ID: 02E1AF2C3D9FB7C9
4 changed files with 22 additions and 22 deletions

View file

@ -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,