aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/completion/complete_unqualified_path.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-10-02 16:50:20 +0100
committerGitHub <[email protected]>2020-10-02 16:50:20 +0100
commit673e1ddb9ae12c565f966549ba7ea8c306cfba87 (patch)
treea1d9c304711806c393163547fe6da69289aa9f16 /crates/ide/src/completion/complete_unqualified_path.rs
parenta360832c95dbfe10167ebebe4978760e9be6a4bd (diff)
parentb06259673f9b535a63c0cabf4eeb935ff73d86d0 (diff)
Merge #6123
6123: Reduce duplication in fixtures r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ide/src/completion/complete_unqualified_path.rs')
-rw-r--r--crates/ide/src/completion/complete_unqualified_path.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/crates/ide/src/completion/complete_unqualified_path.rs b/crates/ide/src/completion/complete_unqualified_path.rs
index 8eda4b64d..2010d9a2f 100644
--- a/crates/ide/src/completion/complete_unqualified_path.rs
+++ b/crates/ide/src/completion/complete_unqualified_path.rs
@@ -271,10 +271,10 @@ fn quux() { <|> }
271 fn completes_extern_prelude() { 271 fn completes_extern_prelude() {
272 check( 272 check(
273 r#" 273 r#"
274//- /lib.rs 274//- /lib.rs crate:main deps:other_crate
275use <|>; 275use <|>;
276 276
277//- /other_crate/lib.rs 277//- /other_crate/lib.rs crate:other_crate
278// nothing here 278// nothing here
279"#, 279"#,
280 expect![[r#" 280 expect![[r#"
@@ -350,10 +350,10 @@ fn foo() {
350 fn completes_prelude() { 350 fn completes_prelude() {
351 check( 351 check(
352 r#" 352 r#"
353//- /main.rs 353//- /main.rs crate:main deps:std
354fn foo() { let x: <|> } 354fn foo() { let x: <|> }
355 355
356//- /std/lib.rs 356//- /std/lib.rs crate:std
357#[prelude_import] 357#[prelude_import]
358use prelude::*; 358use prelude::*;
359 359
@@ -371,16 +371,16 @@ mod prelude { struct Option; }
371 fn completes_std_prelude_if_core_is_defined() { 371 fn completes_std_prelude_if_core_is_defined() {
372 check( 372 check(
373 r#" 373 r#"
374//- /main.rs 374//- /main.rs crate:main deps:core,std
375fn foo() { let x: <|> } 375fn foo() { let x: <|> }
376 376
377//- /core/lib.rs 377//- /core/lib.rs crate:core
378#[prelude_import] 378#[prelude_import]
379use prelude::*; 379use prelude::*;
380 380
381mod prelude { struct Option; } 381mod prelude { struct Option; }
382 382
383//- /std/lib.rs 383//- /std/lib.rs crate:std deps:core
384#[prelude_import] 384#[prelude_import]
385use prelude::*; 385use prelude::*;
386 386