File tree Expand file tree Collapse file tree 9 files changed +542
-1207
lines changed Expand file tree Collapse file tree 9 files changed +542
-1207
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ mod completion_config;
2
2
mod completion_item;
3
3
mod completion_context;
4
4
mod presentation;
5
+ mod patterns;
6
+ #[ cfg( test) ]
7
+ mod test_utils;
5
8
6
9
mod complete_attribute;
7
10
mod complete_dot;
@@ -15,9 +18,6 @@ mod complete_unqualified_path;
15
18
mod complete_postfix;
16
19
mod complete_macro_in_item_position;
17
20
mod complete_trait_impl;
18
- mod patterns;
19
- #[ cfg( test) ]
20
- mod test_utils;
21
21
22
22
use ra_ide_db:: RootDatabase ;
23
23
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ fn foo(s: S) { s.<|> }
83
83
"# ,
84
84
expect ! [ [ r#"
85
85
me bar() fn bar(&self)
86
- fd foo u32
86
+ fd foo u32
87
87
"# ] ] ,
88
88
) ;
89
89
}
@@ -98,7 +98,7 @@ impl S {
98
98
}
99
99
"# ,
100
100
expect ! [ [ r#"
101
- me foo() fn foo(self)
101
+ me foo() fn foo(self)
102
102
fd the_field (u32,)
103
103
"# ] ] ,
104
104
)
@@ -114,7 +114,7 @@ impl A {
114
114
}
115
115
"# ,
116
116
expect ! [ [ r#"
117
- me foo() fn foo(&self)
117
+ me foo() fn foo(&self)
118
118
fd the_field (u32, i32)
119
119
"# ] ] ,
120
120
)
@@ -148,7 +148,7 @@ fn foo(a: inner::A) { a.<|> }
148
148
"# ,
149
149
expect ! [ [ r#"
150
150
fd crate_field u32
151
- fd pub_field u32
151
+ fd pub_field u32
152
152
fd super_field u32
153
153
"# ] ] ,
154
154
) ;
Original file line number Diff line number Diff line change @@ -216,17 +216,17 @@ mod tests {
216
216
check (
217
217
r"use a::<|>" ,
218
218
expect ! [ [ r#"
219
- kw self
220
- kw super::
221
- "# ] ] ,
219
+ kw self
220
+ kw super::
221
+ "# ] ] ,
222
222
) ;
223
223
224
224
check (
225
225
r"use a::{b, <|>}" ,
226
226
expect ! [ [ r#"
227
- kw self
228
- kw super::
229
- "# ] ] ,
227
+ kw self
228
+ kw super::
229
+ "# ] ] ,
230
230
) ;
231
231
}
232
232
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ fn foo() {
61
61
expect ! [ [ r#"
62
62
st Bar
63
63
en E
64
- ev X ()
64
+ ev X ()
65
65
ct Z
66
66
md m
67
67
"# ] ] ,
Original file line number Diff line number Diff line change @@ -260,14 +260,14 @@ fn main() {
260
260
}
261
261
"# ,
262
262
expect ! [ [ r#"
263
- sn box Box::new(expr)
264
- sn call function(expr)
265
- sn dbg dbg!(expr)
266
- sn if if expr {}
263
+ sn box Box::new(expr)
264
+ sn call function(expr)
265
+ sn dbg dbg!(expr)
266
+ sn if if expr {}
267
267
sn match match expr {}
268
- sn not !expr
269
- sn ref &expr
270
- sn refm &mut expr
268
+ sn not !expr
269
+ sn ref &expr
270
+ sn refm &mut expr
271
271
sn while while expr {}
272
272
"# ] ] ,
273
273
) ;
@@ -283,12 +283,12 @@ fn main() {
283
283
}
284
284
"# ,
285
285
expect ! [ [ r#"
286
- sn box Box::new(expr)
287
- sn call function(expr)
288
- sn dbg dbg!(expr)
286
+ sn box Box::new(expr)
287
+ sn call function(expr)
288
+ sn dbg dbg!(expr)
289
289
sn match match expr {}
290
- sn ref &expr
291
- sn refm &mut expr
290
+ sn ref &expr
291
+ sn refm &mut expr
292
292
"# ] ] ,
293
293
)
294
294
}
You can’t perform that action at this time.
0 commit comments