mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
Unify with the autorefed/autoderefed receiver type during method resolution
This commit is contained in:
parent
a1bda3fc08
commit
795d718ba1
5 changed files with 55 additions and 13 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue