aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/completion/complete_path.rs
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-02-11 14:02:59 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-02-11 14:02:59 +0000
commit821d980fd950679315bb12659a13347233895e67 (patch)
treebce5924d76aac4d0368081371e46b0d5f2ee1ad9 /crates/ra_ide_api/src/completion/complete_path.rs
parentca1b0a123119b80d0cbbea2f18124640423efd8b (diff)
parent58ed8ee6650058d5dc4ce511e2d9c04fdfa09aaf (diff)
Merge #785
785: Fix completion of paths r=flodiebold a=matklad r? @flodiebold Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src/completion/complete_path.rs')
-rw-r--r--crates/ra_ide_api/src/completion/complete_path.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_path.rs b/crates/ra_ide_api/src/completion/complete_path.rs
index c47a14e9f..39aefdb13 100644
--- a/crates/ra_ide_api/src/completion/complete_path.rs
+++ b/crates/ra_ide_api/src/completion/complete_path.rs
@@ -186,4 +186,20 @@ mod tests {
186 ", 186 ",
187 ); 187 );
188 } 188 }
189
190 #[test]
191 fn completes_use_paths_across_crates() {
192 check_reference_completion(
193 "completes_use_paths_across_crates",
194 "
195 //- /main.rs
196 use foo::<|>;
197
198 //- /foo/lib.rs
199 pub mod bar {
200 pub struct S;
201 }
202 ",
203 );
204 }
189} 205}