diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-04-15 18:28:10 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-04-15 18:28:10 +0100 |
commit | 427ba9d49bca1a3cab41e438c7a3c5755309f63d (patch) | |
tree | fb1fb2e12139242220e537e6ce5b2c50b521b67a /crates/hir_def/src | |
parent | 3af303600afdc4282dde3a1c8b6c0810662a3e63 (diff) | |
parent | d073c3e56d55e59f2958f288778287367d5c57fd (diff) |
Merge #8534
8534: Remove unneeded annotations from find_path tests r=jonas-schievink a=jonas-schievink
Addresses https://github.com/rust-analyzer/rust-analyzer/pull/8532#discussion_r614247375
bors r+
Co-authored-by: Jonas Schievink <[email protected]>
Diffstat (limited to 'crates/hir_def/src')
-rw-r--r-- | crates/hir_def/src/find_path.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/crates/hir_def/src/find_path.rs b/crates/hir_def/src/find_path.rs index 317ca86ec..41da3bc2d 100644 --- a/crates/hir_def/src/find_path.rs +++ b/crates/hir_def/src/find_path.rs | |||
@@ -427,7 +427,6 @@ mod tests { | |||
427 | fn same_module() { | 427 | fn same_module() { |
428 | check_found_path( | 428 | check_found_path( |
429 | r#" | 429 | r#" |
430 | //- /main.rs | ||
431 | struct S; | 430 | struct S; |
432 | $0 | 431 | $0 |
433 | "#, | 432 | "#, |
@@ -442,7 +441,6 @@ $0 | |||
442 | fn enum_variant() { | 441 | fn enum_variant() { |
443 | check_found_path( | 442 | check_found_path( |
444 | r#" | 443 | r#" |
445 | //- /main.rs | ||
446 | enum E { A } | 444 | enum E { A } |
447 | $0 | 445 | $0 |
448 | "#, | 446 | "#, |
@@ -457,7 +455,6 @@ $0 | |||
457 | fn sub_module() { | 455 | fn sub_module() { |
458 | check_found_path( | 456 | check_found_path( |
459 | r#" | 457 | r#" |
460 | //- /main.rs | ||
461 | mod foo { | 458 | mod foo { |
462 | pub struct S; | 459 | pub struct S; |
463 | } | 460 | } |
@@ -619,7 +616,6 @@ pub mod ast { | |||
619 | fn same_crate_reexport() { | 616 | fn same_crate_reexport() { |
620 | check_found_path( | 617 | check_found_path( |
621 | r#" | 618 | r#" |
622 | //- /main.rs | ||
623 | mod bar { | 619 | mod bar { |
624 | mod foo { pub(super) struct S; } | 620 | mod foo { pub(super) struct S; } |
625 | pub(crate) use foo::*; | 621 | pub(crate) use foo::*; |
@@ -637,7 +633,6 @@ $0 | |||
637 | fn same_crate_reexport_rename() { | 633 | fn same_crate_reexport_rename() { |
638 | check_found_path( | 634 | check_found_path( |
639 | r#" | 635 | r#" |
640 | //- /main.rs | ||
641 | mod bar { | 636 | mod bar { |
642 | mod foo { pub(super) struct S; } | 637 | mod foo { pub(super) struct S; } |
643 | pub(crate) use foo::S as U; | 638 | pub(crate) use foo::S as U; |
@@ -874,7 +869,6 @@ pub struct Arc; | |||
874 | #[test] | 869 | #[test] |
875 | fn builtins_are_in_scope() { | 870 | fn builtins_are_in_scope() { |
876 | let code = r#" | 871 | let code = r#" |
877 | //- /main.rs | ||
878 | $0 | 872 | $0 |
879 | 873 | ||
880 | pub mod primitive { | 874 | pub mod primitive { |