Fully render type alias completions from hir

This commit is contained in:
Lukas Wirth 2021-12-21 16:36:04 +01:00
parent 40d5c58a80
commit 7f7a3644b3
6 changed files with 17 additions and 36 deletions

View file

@ -548,7 +548,7 @@ fn func() {
ev UnitV ()
ct ASSOC_CONST const ASSOC_CONST: ()
fn assoc_fn() fn()
ta AssocType type AssocType;
ta AssocType type AssocType = ()
"#]],
);
}

View file

@ -296,7 +296,7 @@ fn func() {
ev UnitV ()
ct ASSOC_CONST const ASSOC_CONST: ()
fn assoc_fn() fn()
ta AssocType type AssocType;
ta AssocType type AssocType = ()
"#]],
);
}

View file

@ -148,7 +148,7 @@ fn foo<'lt, T: Trait2<$0>, const CONST_PARAM: usize>(_: T) {}
kw self
kw super
kw crate
ta Foo = (as Trait2) type Foo;
ta Foo = (as Trait2) type Foo
tp T
cp CONST_PARAM
tt Trait
@ -199,7 +199,7 @@ impl Enum {
fn func(_: Enum::$0) {}
"#,
expect![[r#"
ta AssocType type AssocType;
ta AssocType type AssocType = ()
"#]],
);
}