aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_completion/src/completions/unqualified_path.rs
diff options
context:
space:
mode:
authorLukas Wirth <[email protected]>2021-06-16 17:50:18 +0100
committerLukas Wirth <[email protected]>2021-06-16 20:51:21 +0100
commit11115ebad8d0cb367478a4f154abe08c0c25aa95 (patch)
treed4260c26782bc61c904c0d78707ea74830bbbfbe /crates/ide_completion/src/completions/unqualified_path.rs
parent9ea6ee6b2785da02ff1963fbbc2eea340450905c (diff)
Don't complete paths after attributes
Diffstat (limited to 'crates/ide_completion/src/completions/unqualified_path.rs')
-rw-r--r--crates/ide_completion/src/completions/unqualified_path.rs48
1 files changed, 0 insertions, 48 deletions
diff --git a/crates/ide_completion/src/completions/unqualified_path.rs b/crates/ide_completion/src/completions/unqualified_path.rs
index 2c623bf7a..3910de2c4 100644
--- a/crates/ide_completion/src/completions/unqualified_path.rs
+++ b/crates/ide_completion/src/completions/unqualified_path.rs
@@ -500,18 +500,6 @@ fn f() {$0}
500 check( 500 check(
501 r#" 501 r#"
502#[rustc_builtin_macro] 502#[rustc_builtin_macro]
503pub macro Clone {}
504
505struct S;
506impl S {
507 $0
508}
509"#,
510 expect![[r#""#]],
511 );
512 check(
513 r#"
514#[rustc_builtin_macro]
515pub macro bench {} 503pub macro bench {}
516 504
517fn f() {$0} 505fn f() {$0}
@@ -773,42 +761,6 @@ impl My$0
773 } 761 }
774 762
775 #[test] 763 #[test]
776 fn completes_in_assoc_item_list() {
777 check(
778 r#"
779macro_rules! foo {}
780mod bar {}
781
782struct MyStruct {}
783impl MyStruct {
784 $0
785}
786"#,
787 expect![[r#"
788 md bar
789 ma foo!(…) macro_rules! foo
790 "#]],
791 )
792 }
793
794 #[test]
795 fn completes_in_item_list() {
796 check(
797 r#"
798struct MyStruct {}
799macro_rules! foo {}
800mod bar {}
801
802$0
803"#,
804 expect![[r#"
805 md bar
806 ma foo!(…) macro_rules! foo
807 "#]],
808 )
809 }
810
811 #[test]
812 fn completes_types_and_const_in_arg_list() { 764 fn completes_types_and_const_in_arg_list() {
813 check( 765 check(
814 r#" 766 r#"