Fallback to invisible associated functions and constants if no visible resolutions are found

This commit is contained in:
Lukas Wirth 2022-12-30 23:56:08 +01:00
parent 0d76b94c90
commit 5d54c550e7
3 changed files with 94 additions and 54 deletions

View file

@ -3274,7 +3274,7 @@ impl Type {
with_local_impls.and_then(|b| b.id.containing_block()).into(),
name,
method_resolution::LookupMode::MethodCall,
&mut |_adj, id| callback(id),
&mut |_adj, id, _| callback(id),
);
}