Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/method_resolution.rs')
| -rw-r--r-- | crates/hir-ty/src/method_resolution.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/hir-ty/src/method_resolution.rs b/crates/hir-ty/src/method_resolution.rs index 2d162bc38e..2f5fa3083c 100644 --- a/crates/hir-ty/src/method_resolution.rs +++ b/crates/hir-ty/src/method_resolution.rs @@ -488,13 +488,13 @@ pub fn lang_names_for_bin_op(op: syntax::ast::BinaryOp) -> Option<(Name, Name)> /// Look up the method with the given name. pub(crate) fn lookup_method( - ty: &Canonical<Ty>, db: &dyn HirDatabase, + ty: &Canonical<Ty>, env: Arc<TraitEnvironment>, traits_in_scope: &FxHashSet<TraitId>, visible_from_module: VisibleFromModule, name: &Name, -) -> Option<(ReceiverAdjustments, FunctionId)> { +) -> Option<(ReceiverAdjustments, FunctionId, bool)> { let mut not_visible = None; let res = iterate_method_candidates( ty, @@ -505,9 +505,9 @@ pub(crate) fn lookup_method( Some(name), LookupMode::MethodCall, |adjustments, f, visible| match f { - AssocItemId::FunctionId(f) if visible => Some((adjustments, f)), + AssocItemId::FunctionId(f) if visible => Some((adjustments, f, true)), AssocItemId::FunctionId(f) if not_visible.is_none() => { - not_visible = Some((adjustments, f)); + not_visible = Some((adjustments, f, false)); None } _ => None, |