Do not suggest adjusting trait signature on type mismatch
This commit is contained in:
parent
0f7ef1a202
commit
d1ab6c2ae3
2 changed files with 4 additions and 5 deletions
|
@ -3959,6 +3959,10 @@ fn hint_missing_borrow<'tcx>(
|
|||
found_node: Node<'_>,
|
||||
err: &mut Diagnostic,
|
||||
) {
|
||||
if matches!(found_node, Node::TraitItem(..)) {
|
||||
return;
|
||||
}
|
||||
|
||||
let found_args = match found.kind() {
|
||||
ty::FnPtr(f) => infcx.instantiate_binder_with_placeholders(*f).inputs().iter(),
|
||||
kind => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue