mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Simplify completion render functionality
This commit is contained in:
parent
4fe5f03c7f
commit
02b401b130
14 changed files with 490 additions and 345 deletions
|
@ -124,6 +124,7 @@ fn foo() {
|
|||
st Unit
|
||||
ma makro!(…) macro_rules! makro
|
||||
bn TupleV TupleV($1)$0
|
||||
bn TupleV TupleV()$0
|
||||
ev TupleV
|
||||
ct CONST
|
||||
"#]],
|
||||
|
@ -150,6 +151,7 @@ fn foo() {
|
|||
bn Tuple Tuple($1)$0
|
||||
st Tuple
|
||||
ev Variant
|
||||
md module
|
||||
en SingleVariantEnum
|
||||
st Unit
|
||||
ma makro!(…) macro_rules! makro
|
||||
|
@ -171,6 +173,7 @@ fn foo(a$0) {
|
|||
st Record
|
||||
bn Tuple Tuple($1): Tuple$0
|
||||
st Tuple
|
||||
md module
|
||||
st Unit
|
||||
ma makro!(…) macro_rules! makro
|
||||
"#]],
|
||||
|
@ -187,6 +190,7 @@ fn foo(a$0: Tuple) {
|
|||
st Record
|
||||
bn Tuple Tuple($1)$0
|
||||
st Tuple
|
||||
md module
|
||||
st Unit
|
||||
ma makro!(…) macro_rules! makro
|
||||
"#]],
|
||||
|
@ -228,7 +232,6 @@ fn foo() {
|
|||
expect![[r#"
|
||||
kw ref
|
||||
kw mut
|
||||
ev E::X E::X
|
||||
en E
|
||||
ma m!(…) macro_rules! m
|
||||
"#]],
|
||||
|
@ -426,9 +429,7 @@ fn foo() {
|
|||
}
|
||||
}
|
||||
"#,
|
||||
expect![[r#"
|
||||
ev TupleVariant(…) TupleVariant(u32)
|
||||
"#]],
|
||||
expect![[r#""#]],
|
||||
);
|
||||
check_empty(
|
||||
r#"
|
||||
|
@ -441,8 +442,6 @@ fn foo() {
|
|||
}
|
||||
}
|
||||
"#,
|
||||
expect![[r#"
|
||||
ev RecordVariant {…} RecordVariant { field: u32 }
|
||||
"#]],
|
||||
expect![[r#""#]],
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue