mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Fully render type alias completions from hir
This commit is contained in:
parent
40d5c58a80
commit
7f7a3644b3
6 changed files with 17 additions and 36 deletions
|
@ -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 = ()
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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 = ()
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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 = ()
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue