Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-completion/src/completions/qualified_path.rs')
-rw-r--r--crates/ide-completion/src/completions/qualified_path.rs24
1 files changed, 12 insertions, 12 deletions
diff --git a/crates/ide-completion/src/completions/qualified_path.rs b/crates/ide-completion/src/completions/qualified_path.rs
index 2c2fe524ef..ad92820bca 100644
--- a/crates/ide-completion/src/completions/qualified_path.rs
+++ b/crates/ide-completion/src/completions/qualified_path.rs
@@ -249,8 +249,8 @@ impl S {
fn foo() { let _ = lib::S::$0 }
"#,
expect![[r#"
- fn public_method() fn()
ct PUBLIC_CONST pub const PUBLIC_CONST: u32
+ fn public_method() fn()
ta PublicType pub type PublicType = u32
"#]],
);
@@ -340,14 +340,14 @@ trait Sub: Super {
fn foo<T: Sub>() { T::$0 }
"#,
expect![[r#"
- ta SubTy (as Sub) type SubTy
- ta Ty (as Super) type Ty
ct C2 (as Sub) const C2: ()
- fn subfunc() (as Sub) fn()
- me submethod(…) (as Sub) fn(&self)
ct CONST (as Super) const CONST: u8
fn func() (as Super) fn()
+ fn subfunc() (as Sub) fn()
+ ta SubTy (as Sub) type SubTy
+ ta Ty (as Super) type Ty
me method(…) (as Super) fn(&self)
+ me submethod(…) (as Sub) fn(&self)
"#]],
);
}
@@ -380,13 +380,13 @@ impl<T> Sub for Wrap<T> {
}
"#,
expect![[r#"
- ta SubTy (as Sub) type SubTy
- ta Ty (as Super) type Ty
+ ct C2 (as Sub) const C2: ()
ct CONST (as Super) const CONST: u8
fn func() (as Super) fn()
- me method(…) (as Super) fn(&self)
- ct C2 (as Sub) const C2: ()
fn subfunc() (as Sub) fn()
+ ta SubTy (as Sub) type SubTy
+ ta Ty (as Super) type Ty
+ me method(…) (as Super) fn(&self)
me submethod(…) (as Sub) fn(&self)
"#]],
);
@@ -404,8 +404,8 @@ impl T { fn bar() {} }
fn main() { T::$0; }
"#,
expect![[r#"
- fn foo() fn()
fn bar() fn()
+ fn foo() fn()
"#]],
);
}
@@ -518,8 +518,8 @@ fn main() { m!(self::f$0); }
fn foo() {}
"#,
expect![[r#"
- fn main() fn()
fn foo() fn()
+ fn main() fn()
"#]],
);
}
@@ -536,8 +536,8 @@ mod m {
}
"#,
expect![[r#"
- md z
fn z() fn()
+ md z
"#]],
);
}