Unify with the autorefed/autoderefed receiver type during method resolution

This commit is contained in:
Florian Diebold 2019-02-17 14:43:59 +01:00
parent a1bda3fc08
commit 795d718ba1
5 changed files with 55 additions and 13 deletions

View file

@ -63,7 +63,7 @@ fn complete_fields(acc: &mut Completions, ctx: &CompletionContext, receiver: Ty)
}
fn complete_methods(acc: &mut Completions, ctx: &CompletionContext, receiver: Ty) {
receiver.iterate_methods(ctx.db, |func| {
receiver.iterate_methods(ctx.db, |_ty, func| {
let sig = func.signature(ctx.db);
if sig.has_self_param() {
CompletionItem::new(