Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-completion/src/completions/dot.rs')
-rw-r--r--crates/ide-completion/src/completions/dot.rs22
1 files changed, 11 insertions, 11 deletions
diff --git a/crates/ide-completion/src/completions/dot.rs b/crates/ide-completion/src/completions/dot.rs
index 18c1992afa..2cc2200df9 100644
--- a/crates/ide-completion/src/completions/dot.rs
+++ b/crates/ide-completion/src/completions/dot.rs
@@ -18,7 +18,7 @@ use crate::{
/// Complete dot accesses, i.e. fields or methods.
pub(crate) fn complete_dot(
acc: &mut Completions,
- ctx: &CompletionContext<'_>,
+ ctx: &CompletionContext<'_, '_>,
dot_access: &DotAccess<'_>,
) {
let receiver_ty = match dot_access {
@@ -126,7 +126,7 @@ pub(crate) fn complete_dot(
pub(crate) fn complete_undotted_self(
acc: &mut Completions,
- ctx: &CompletionContext<'_>,
+ ctx: &CompletionContext<'_, '_>,
path_ctx: &PathCompletionCtx<'_>,
expr_ctx: &PathExprCtx<'_>,
) {
@@ -198,7 +198,7 @@ pub(crate) fn complete_undotted_self(
fn complete_fields(
acc: &mut Completions,
- ctx: &CompletionContext<'_>,
+ ctx: &CompletionContext<'_, '_>,
receiver: &hir::Type<'_>,
mut named_field: impl FnMut(&mut Completions, hir::Field, hir::Type<'_>),
mut tuple_index: impl FnMut(&mut Completions, usize, hir::Type<'_>),
@@ -227,13 +227,13 @@ fn complete_fields(
}
fn complete_methods(
- ctx: &CompletionContext<'_>,
+ ctx: &CompletionContext<'_, '_>,
receiver: &hir::Type<'_>,
traits_in_scope: &FxHashSet<hir::TraitId>,
f: impl FnMut(hir::Function),
) {
- struct Callback<'a, F> {
- ctx: &'a CompletionContext<'a>,
+ struct Callback<'a, 'db, F> {
+ ctx: &'a CompletionContext<'a, 'db>,
f: F,
// We deliberately deduplicate by function ID and not name, because while inherent methods cannot be
// duplicated, trait methods can. And it is still useful to show all of them (even when there
@@ -241,7 +241,7 @@ fn complete_methods(
seen_methods: FxHashSet<Function>,
}
- impl<F> MethodCandidateCallback for Callback<'_, F>
+ impl<F> MethodCandidateCallback for Callback<'_, '_, F>
where
F: FnMut(hir::Function),
{
@@ -1093,7 +1093,7 @@ impl Foo { fn foo(&mut self) { let _: fn(&mut Self) = |this| { $0 } } }"#,
me this.foo() fn(&mut self)
lc self &mut Foo
lc this &mut Foo
- md core
+ md core::
sp Self Foo
st Foo Foo
tt Fn
@@ -1117,7 +1117,7 @@ impl Foo { fn foo(&self) { let _: fn(&Self) = |foo| { $0 } } }"#,
me self.foo() fn(&self)
lc foo &Foo
lc self &Foo
- md core
+ md core::
sp Self Foo
st Foo Foo
tt Fn
@@ -1137,7 +1137,7 @@ impl Foo { fn foo(&self) { let _: fn(&Self) = || { $0 } } }"#,
fd self.field i32
me self.foo() fn(&self)
lc self &Foo
- md core
+ md core::
sp Self Foo
st Foo Foo
tt Fn
@@ -1159,7 +1159,7 @@ impl Foo { fn foo(&self) { let _: fn(&Self, &Self) = |foo, other| { $0 } } }"#,
lc foo &Foo
lc other &Foo
lc self &Foo
- md core
+ md core::
sp Self Foo
st Foo Foo
tt Fn