Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-completion/src/tests/pattern.rs')
-rw-r--r--crates/ide-completion/src/tests/pattern.rs70
1 files changed, 35 insertions, 35 deletions
diff --git a/crates/ide-completion/src/tests/pattern.rs b/crates/ide-completion/src/tests/pattern.rs
index a5eb0369b1..2f1f555e52 100644
--- a/crates/ide-completion/src/tests/pattern.rs
+++ b/crates/ide-completion/src/tests/pattern.rs
@@ -122,15 +122,15 @@ fn foo() {
expect![[r#"
ct CONST
en Enum
- ma makro!(…) macro_rules! makro
+ ma makro!(…) macro_rules! makro
md module
st Record
st Tuple
st Unit
ev TupleV
bn Record {…} Record { field$1 }$0
- bn Tuple(…) Tuple($1)$0
- bn TupleV(…) TupleV($1)$0
+ bn Tuple(…) Tuple($1)$0
+ bn TupleV(…) TupleV($1)$0
kw mut
kw ref
"#]],
@@ -151,15 +151,15 @@ fn foo() {
"#,
expect![[r#"
en SingleVariantEnum
- ma makro!(…) macro_rules! makro
+ ma makro!(…) macro_rules! makro
md module
st Record
st Tuple
st Unit
ev Variant
- bn Record {…} Record { field$1 }$0
- bn Tuple(…) Tuple($1)$0
- bn Variant Variant$0
+ bn Record {…} Record { field$1 }$0
+ bn Tuple(…) Tuple($1)$0
+ bn Variant Variant$0
kw mut
kw ref
"#]],
@@ -174,13 +174,13 @@ fn foo(a$0) {
}
"#,
expect![[r#"
- ma makro!(…) macro_rules! makro
+ ma makro!(…) macro_rules! makro
md module
st Record
st Tuple
st Unit
bn Record {…} Record { field$1 }: Record$0
- bn Tuple(…) Tuple($1): Tuple$0
+ bn Tuple(…) Tuple($1): Tuple$0
kw mut
kw ref
"#]],
@@ -191,13 +191,13 @@ fn foo(a$0: Tuple) {
}
"#,
expect![[r#"
- ma makro!(…) macro_rules! makro
+ ma makro!(…) macro_rules! makro
md module
st Record
st Tuple
st Unit
bn Record {…} Record { field$1 }$0
- bn Tuple(…) Tuple($1)$0
+ bn Tuple(…) Tuple($1)$0
bn tuple
kw mut
kw ref
@@ -240,7 +240,7 @@ fn foo() {
expect![[r#"
en E
ma m!(…) macro_rules! m
- bn E::X E::X$0
+ bn E::X E::X$0
kw mut
kw ref
"#]],
@@ -268,7 +268,7 @@ fn outer() {
st Record
st Tuple
bn Record {…} Record { field$1, .. }$0
- bn Tuple(…) Tuple($1, ..)$0
+ bn Tuple(…) Tuple($1, ..)$0
kw mut
kw ref
"#]],
@@ -291,7 +291,7 @@ impl Foo {
expect![[r#"
sp Self
st Foo
- bn Foo(…) Foo($1)$0
+ bn Foo(…) Foo($1)$0
bn Self(…) Self($1)$0
kw mut
kw ref
@@ -315,8 +315,8 @@ fn func() {
expect![[r#"
ct ASSOC_CONST const ASSOC_CONST: ()
bn RecordV {…} RecordV { field$1 }$0
- bn TupleV(…) TupleV($1)$0
- bn UnitV UnitV$0
+ bn TupleV(…) TupleV($1)$0
+ bn UnitV UnitV$0
"#]],
);
}
@@ -332,7 +332,7 @@ fn outer(Foo { bar: $0 }: Foo) {}
expect![[r#"
st Bar
st Foo
- bn Bar(…) Bar($1)$0
+ bn Bar(…) Bar($1)$0
bn Foo {…} Foo { bar$1 }$0
kw mut
kw ref
@@ -395,7 +395,7 @@ fn foo($0) {}
expect![[r#"
st Bar
st Foo
- bn Bar(…) Bar($1): Bar$0
+ bn Bar(…) Bar($1): Bar$0
bn Foo {…} Foo { bar$1 }: Foo$0
kw mut
kw ref
@@ -416,7 +416,7 @@ fn foo() {
expect![[r#"
st Bar
st Foo
- bn Bar(…) Bar($1)$0
+ bn Bar(…) Bar($1)$0
bn Foo {…} Foo { bar$1 }$0
kw mut
kw ref
@@ -436,7 +436,7 @@ fn foo() {
}
"#,
expect![[r#"
- st Bar Bar
+ st Bar Bar
kw crate::
kw self::
"#]],
@@ -451,7 +451,7 @@ fn foo() {
}
"#,
expect![[r#"
- st Foo Foo
+ st Foo Foo
kw crate::
kw self::
"#]],
@@ -535,10 +535,10 @@ fn foo() {
"#,
expect![[r#"
en Enum
- bn Enum::A Enum::A$0
- bn Enum::B {…} Enum::B { r#type$1 }$0
+ bn Enum::A Enum::A$0
+ bn Enum::B {…} Enum::B { r#type$1 }$0
bn Enum::struct {…} Enum::r#struct { r#type$1 }$0
- bn Enum::type Enum::r#type$0
+ bn Enum::type Enum::r#type$0
kw mut
kw ref
"#]],
@@ -559,10 +559,10 @@ fn foo() {
}
"#,
expect![[r#"
- bn A A$0
- bn B {…} B { r#type$1 }$0
+ bn A A$0
+ bn B {…} B { r#type$1 }$0
bn struct {…} r#struct { r#type$1 }$0
- bn type r#type$0
+ bn type r#type$0
"#]],
);
}
@@ -672,8 +672,8 @@ impl Ty {
st Ty
bn &mut self
bn &self
- bn Self(…) Self($1): Self$0
- bn Ty(…) Ty($1): Ty$0
+ bn Self(…) Self($1): Self$0
+ bn Ty(…) Ty($1): Ty$0
bn mut self
bn self
kw mut
@@ -693,8 +693,8 @@ impl Ty {
st Ty
bn &mut self
bn &self
- bn Self(…) Self($1): Self$0
- bn Ty(…) Ty($1): Ty$0
+ bn Self(…) Self($1): Self$0
+ bn Ty(…) Ty($1): Ty$0
bn mut self
bn self
kw mut
@@ -714,8 +714,8 @@ impl Ty {
st Ty
bn &mut self
bn &self
- bn Self(…) Self($1): Self$0
- bn Ty(…) Ty($1): Ty$0
+ bn Self(…) Self($1): Self$0
+ bn Ty(…) Ty($1): Ty$0
bn mut self
bn self
kw mut
@@ -734,7 +734,7 @@ impl Ty {
sp Self
st Ty
bn Self(…) Self($1): Self$0
- bn Ty(…) Ty($1): Ty$0
+ bn Ty(…) Ty($1): Ty$0
kw mut
kw ref
"#]],
@@ -763,7 +763,7 @@ fn f(x: EnumAlias<u8>) {
"#,
expect![[r#"
bn Tuple(…) Tuple($1)$0
- bn Unit Unit$0
+ bn Unit Unit$0
"#]],
);
}