internal: Simplify some completions

This commit is contained in:
Lukas Wirth 2022-06-20 21:55:33 +02:00
parent 8b078986dc
commit 7a0774defa
11 changed files with 147 additions and 222 deletions

View file

@ -399,7 +399,6 @@ fn foo() {
#[test]
fn completes_no_delims_if_existing() {
// FIXME: We should not complete functions here
check_empty(
r#"
struct Bar(u32);
@ -410,9 +409,7 @@ fn foo() {
}
"#,
expect![[r#"
fn foo fn()
st Bar
bt u32
kw crate::
kw self::
kw super::
@ -428,9 +425,7 @@ fn foo() {
}
"#,
expect![[r#"
fn foo fn()
st Foo
bt u32
kw crate::
kw self::
kw super::