aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_completion/src/completions
diff options
context:
space:
mode:
authorLukas Tobias Wirth <[email protected]>2021-05-03 20:34:34 +0100
committerLukas Tobias Wirth <[email protected]>2021-05-03 20:34:34 +0100
commit121bd5c533de2ae8b74de72f1b1dbbc7327d358b (patch)
tree431f6699b92b14c5363543fac3da15a24ea20ac2 /crates/ide_completion/src/completions
parent544a93ee0815697ff42b79e54d1a7a5a743de1f9 (diff)
Make CompletionContext expected_type smarter
Diffstat (limited to 'crates/ide_completion/src/completions')
-rw-r--r--crates/ide_completion/src/completions/qualified_path.rs22
1 files changed, 0 insertions, 22 deletions
diff --git a/crates/ide_completion/src/completions/qualified_path.rs b/crates/ide_completion/src/completions/qualified_path.rs
index 969249df6..d8f23d1eb 100644
--- a/crates/ide_completion/src/completions/qualified_path.rs
+++ b/crates/ide_completion/src/completions/qualified_path.rs
@@ -737,28 +737,6 @@ fn f() {}
737 } 737 }
738 738
739 #[test] 739 #[test]
740 fn completes_function() {
741 check(
742 r#"
743fn foo(
744 a: i32,
745 b: i32
746) {
747
748}
749
750fn main() {
751 fo$0
752}
753"#,
754 expect![[r#"
755 fn main() fn()
756 fn foo(…) fn(i32, i32)
757 "#]],
758 );
759 }
760
761 #[test]
762 fn completes_self_enum() { 740 fn completes_self_enum() {
763 check( 741 check(
764 r#" 742 r#"