diff options
Diffstat (limited to 'crates/ide_completion/src/completions/unqualified_path.rs')
-rw-r--r-- | crates/ide_completion/src/completions/unqualified_path.rs | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/crates/ide_completion/src/completions/unqualified_path.rs b/crates/ide_completion/src/completions/unqualified_path.rs index 044dfd160..e4bf4a043 100644 --- a/crates/ide_completion/src/completions/unqualified_path.rs +++ b/crates/ide_completion/src/completions/unqualified_path.rs | |||
@@ -139,7 +139,7 @@ fn quux(x: i32) { | |||
139 | expect![[r#" | 139 | expect![[r#" |
140 | lc y i32 | 140 | lc y i32 |
141 | lc x i32 | 141 | lc x i32 |
142 | fn quux(…) -> () | 142 | fn quux(…) fn(i32) |
143 | "#]], | 143 | "#]], |
144 | ); | 144 | ); |
145 | } | 145 | } |
@@ -161,7 +161,7 @@ fn quux() { | |||
161 | expect![[r#" | 161 | expect![[r#" |
162 | lc b i32 | 162 | lc b i32 |
163 | lc a | 163 | lc a |
164 | fn quux() -> () | 164 | fn quux() fn() |
165 | "#]], | 165 | "#]], |
166 | ); | 166 | ); |
167 | } | 167 | } |
@@ -176,7 +176,7 @@ fn quux() { | |||
176 | "#, | 176 | "#, |
177 | expect![[r#" | 177 | expect![[r#" |
178 | lc x | 178 | lc x |
179 | fn quux() -> () | 179 | fn quux() fn() |
180 | "#]], | 180 | "#]], |
181 | ); | 181 | ); |
182 | } | 182 | } |
@@ -207,14 +207,14 @@ fn main() { | |||
207 | r#"fn quux<T>() { $0 }"#, | 207 | r#"fn quux<T>() { $0 }"#, |
208 | expect![[r#" | 208 | expect![[r#" |
209 | tp T | 209 | tp T |
210 | fn quux() -> () | 210 | fn quux() fn() |
211 | "#]], | 211 | "#]], |
212 | ); | 212 | ); |
213 | check( | 213 | check( |
214 | r#"fn quux<const C: usize>() { $0 }"#, | 214 | r#"fn quux<const C: usize>() { $0 }"#, |
215 | expect![[r#" | 215 | expect![[r#" |
216 | cp C | 216 | cp C |
217 | fn quux() -> () | 217 | fn quux() fn() |
218 | "#]], | 218 | "#]], |
219 | ); | 219 | ); |
220 | } | 220 | } |
@@ -225,7 +225,7 @@ fn main() { | |||
225 | check( | 225 | check( |
226 | r#"fn quux<'a>() { $0 }"#, | 226 | r#"fn quux<'a>() { $0 }"#, |
227 | expect![[r#" | 227 | expect![[r#" |
228 | fn quux() -> () | 228 | fn quux() fn() |
229 | "#]], | 229 | "#]], |
230 | ); | 230 | ); |
231 | } | 231 | } |
@@ -263,7 +263,7 @@ fn quux() { $0 } | |||
263 | "#, | 263 | "#, |
264 | expect![[r#" | 264 | expect![[r#" |
265 | st S | 265 | st S |
266 | fn quux() -> () | 266 | fn quux() fn() |
267 | en E | 267 | en E |
268 | "#]], | 268 | "#]], |
269 | ); | 269 | ); |
@@ -316,7 +316,7 @@ mod m { | |||
316 | } | 316 | } |
317 | "#, | 317 | "#, |
318 | expect![[r#" | 318 | expect![[r#" |
319 | fn quux() -> () | 319 | fn quux() fn() |
320 | st Bar | 320 | st Bar |
321 | "#]], | 321 | "#]], |
322 | ); | 322 | ); |
@@ -331,7 +331,7 @@ fn x() -> $0 | |||
331 | "#, | 331 | "#, |
332 | expect![[r#" | 332 | expect![[r#" |
333 | st Foo | 333 | st Foo |
334 | fn x() -> () | 334 | fn x() fn() |
335 | "#]], | 335 | "#]], |
336 | ); | 336 | ); |
337 | } | 337 | } |
@@ -352,7 +352,7 @@ fn foo() { | |||
352 | expect![[r#" | 352 | expect![[r#" |
353 | lc bar i32 | 353 | lc bar i32 |
354 | lc bar i32 | 354 | lc bar i32 |
355 | fn foo() -> () | 355 | fn foo() fn() |
356 | "#]], | 356 | "#]], |
357 | ); | 357 | ); |
358 | } | 358 | } |
@@ -382,7 +382,7 @@ use prelude::*; | |||
382 | mod prelude { struct Option; } | 382 | mod prelude { struct Option; } |
383 | "#, | 383 | "#, |
384 | expect![[r#" | 384 | expect![[r#" |
385 | fn foo() -> () | 385 | fn foo() fn() |
386 | md std | 386 | md std |
387 | st Option | 387 | st Option |
388 | "#]], | 388 | "#]], |
@@ -412,7 +412,7 @@ mod macros { | |||
412 | } | 412 | } |
413 | "#, | 413 | "#, |
414 | expect![[r##" | 414 | expect![[r##" |
415 | fn f() -> () | 415 | fn f() fn() |
416 | ma concat!(…) #[macro_export] macro_rules! concat | 416 | ma concat!(…) #[macro_export] macro_rules! concat |
417 | md std | 417 | md std |
418 | "##]], | 418 | "##]], |
@@ -439,7 +439,7 @@ use prelude::*; | |||
439 | mod prelude { struct String; } | 439 | mod prelude { struct String; } |
440 | "#, | 440 | "#, |
441 | expect![[r#" | 441 | expect![[r#" |
442 | fn foo() -> () | 442 | fn foo() fn() |
443 | md std | 443 | md std |
444 | md core | 444 | md core |
445 | st String | 445 | st String |
@@ -470,7 +470,7 @@ fn main() { let v = $0 } | |||
470 | expect![[r##" | 470 | expect![[r##" |
471 | md m1 | 471 | md m1 |
472 | ma baz!(…) #[macro_export] macro_rules! baz | 472 | ma baz!(…) #[macro_export] macro_rules! baz |
473 | fn main() -> () | 473 | fn main() fn() |
474 | md m2 | 474 | md m2 |
475 | ma bar!(…) macro_rules! bar | 475 | ma bar!(…) macro_rules! bar |
476 | ma foo!(…) macro_rules! foo | 476 | ma foo!(…) macro_rules! foo |
@@ -486,7 +486,7 @@ macro_rules! foo { () => {} } | |||
486 | fn foo() { $0 } | 486 | fn foo() { $0 } |
487 | "#, | 487 | "#, |
488 | expect![[r#" | 488 | expect![[r#" |
489 | fn foo() -> () | 489 | fn foo() fn() |
490 | ma foo!(…) macro_rules! foo | 490 | ma foo!(…) macro_rules! foo |
491 | "#]], | 491 | "#]], |
492 | ); | 492 | ); |
@@ -500,7 +500,7 @@ macro_rules! foo { () => {} } | |||
500 | fn main() { let x: $0 } | 500 | fn main() { let x: $0 } |
501 | "#, | 501 | "#, |
502 | expect![[r#" | 502 | expect![[r#" |
503 | fn main() -> () | 503 | fn main() fn() |
504 | ma foo!(…) macro_rules! foo | 504 | ma foo!(…) macro_rules! foo |
505 | "#]], | 505 | "#]], |
506 | ); | 506 | ); |
@@ -514,7 +514,7 @@ macro_rules! foo { () => {} } | |||
514 | fn main() { $0 } | 514 | fn main() { $0 } |
515 | "#, | 515 | "#, |
516 | expect![[r#" | 516 | expect![[r#" |
517 | fn main() -> () | 517 | fn main() fn() |
518 | ma foo!(…) macro_rules! foo | 518 | ma foo!(…) macro_rules! foo |
519 | "#]], | 519 | "#]], |
520 | ); | 520 | ); |
@@ -530,8 +530,8 @@ fn main() { | |||
530 | } | 530 | } |
531 | "#, | 531 | "#, |
532 | expect![[r#" | 532 | expect![[r#" |
533 | fn frobnicate() -> () | 533 | fn frobnicate() fn() |
534 | fn main() -> () | 534 | fn main() fn() |
535 | "#]], | 535 | "#]], |
536 | ); | 536 | ); |
537 | } | 537 | } |
@@ -549,7 +549,7 @@ fn quux(x: i32) { | |||
549 | expect![[r#" | 549 | expect![[r#" |
550 | lc y i32 | 550 | lc y i32 |
551 | lc x i32 | 551 | lc x i32 |
552 | fn quux(…) -> () | 552 | fn quux(…) fn(i32) |
553 | ma m!(…) macro_rules! m | 553 | ma m!(…) macro_rules! m |
554 | "#]], | 554 | "#]], |
555 | ); | 555 | ); |
@@ -568,7 +568,7 @@ fn quux(x: i32) { | |||
568 | expect![[r#" | 568 | expect![[r#" |
569 | lc y i32 | 569 | lc y i32 |
570 | lc x i32 | 570 | lc x i32 |
571 | fn quux(…) -> () | 571 | fn quux(…) fn(i32) |
572 | ma m!(…) macro_rules! m | 572 | ma m!(…) macro_rules! m |
573 | "#]], | 573 | "#]], |
574 | ); | 574 | ); |
@@ -587,7 +587,7 @@ fn quux(x: i32) { | |||
587 | expect![[r#" | 587 | expect![[r#" |
588 | lc y i32 | 588 | lc y i32 |
589 | lc x i32 | 589 | lc x i32 |
590 | fn quux(…) -> () | 590 | fn quux(…) fn(i32) |
591 | ma m!(…) macro_rules! m | 591 | ma m!(…) macro_rules! m |
592 | "#]], | 592 | "#]], |
593 | ); | 593 | ); |
@@ -602,7 +602,7 @@ use spam::Quux; | |||
602 | fn main() { $0 } | 602 | fn main() { $0 } |
603 | "#, | 603 | "#, |
604 | expect![[r#" | 604 | expect![[r#" |
605 | fn main() -> () | 605 | fn main() fn() |
606 | ?? Quux | 606 | ?? Quux |
607 | "#]], | 607 | "#]], |
608 | ); | 608 | ); |
@@ -680,7 +680,7 @@ fn main() { let foo: Foo = Q$0 } | |||
680 | ev Foo::Baz () | 680 | ev Foo::Baz () |
681 | ev Foo::Quux () | 681 | ev Foo::Quux () |
682 | en Foo | 682 | en Foo |
683 | fn main() -> () | 683 | fn main() fn() |
684 | "#]], | 684 | "#]], |
685 | ) | 685 | ) |
686 | } | 686 | } |
@@ -695,7 +695,7 @@ fn f() -> m::E { V$0 } | |||
695 | expect![[r#" | 695 | expect![[r#" |
696 | ev m::E::V () | 696 | ev m::E::V () |
697 | md m | 697 | md m |
698 | fn f() -> E | 698 | fn f() fn() -> E |
699 | "#]], | 699 | "#]], |
700 | ) | 700 | ) |
701 | } | 701 | } |