diff options
author | Edwin Cheng <[email protected]> | 2020-04-27 18:48:55 +0100 |
---|---|---|
committer | Edwin Cheng <[email protected]> | 2020-04-27 18:48:55 +0100 |
commit | 6a5014329aecf73da81943216729ab64fa255368 (patch) | |
tree | e3b13ad7e6416ab9fa82365fad96e1f08384ba05 /crates/ra_hir_ty | |
parent | ef67e0a497a3f0b65c11bf443e0d35c8e51bd26f (diff) |
Use core instead of std for builtin derive macros
Diffstat (limited to 'crates/ra_hir_ty')
-rw-r--r-- | crates/ra_hir_ty/src/tests/macros.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_hir_ty/src/tests/macros.rs b/crates/ra_hir_ty/src/tests/macros.rs index 6b5267232..4f82ff702 100644 --- a/crates/ra_hir_ty/src/tests/macros.rs +++ b/crates/ra_hir_ty/src/tests/macros.rs | |||
@@ -622,14 +622,14 @@ fn main() { | |||
622 | fn infer_derive_clone_simple() { | 622 | fn infer_derive_clone_simple() { |
623 | let (db, pos) = TestDB::with_position( | 623 | let (db, pos) = TestDB::with_position( |
624 | r#" | 624 | r#" |
625 | //- /main.rs crate:main deps:std | 625 | //- /main.rs crate:main deps:core |
626 | #[derive(Clone)] | 626 | #[derive(Clone)] |
627 | struct S; | 627 | struct S; |
628 | fn test() { | 628 | fn test() { |
629 | S.clone()<|>; | 629 | S.clone()<|>; |
630 | } | 630 | } |
631 | 631 | ||
632 | //- /lib.rs crate:std | 632 | //- /lib.rs crate:core |
633 | #[prelude_import] | 633 | #[prelude_import] |
634 | use clone::*; | 634 | use clone::*; |
635 | mod clone { | 635 | mod clone { |
@@ -646,7 +646,7 @@ mod clone { | |||
646 | fn infer_derive_clone_with_params() { | 646 | fn infer_derive_clone_with_params() { |
647 | let (db, pos) = TestDB::with_position( | 647 | let (db, pos) = TestDB::with_position( |
648 | r#" | 648 | r#" |
649 | //- /main.rs crate:main deps:std | 649 | //- /main.rs crate:main deps:core |
650 | #[derive(Clone)] | 650 | #[derive(Clone)] |
651 | struct S; | 651 | struct S; |
652 | #[derive(Clone)] | 652 | #[derive(Clone)] |
@@ -656,7 +656,7 @@ fn test() { | |||
656 | (Wrapper(S).clone(), Wrapper(NonClone).clone())<|>; | 656 | (Wrapper(S).clone(), Wrapper(NonClone).clone())<|>; |
657 | } | 657 | } |
658 | 658 | ||
659 | //- /lib.rs crate:std | 659 | //- /lib.rs crate:core |
660 | #[prelude_import] | 660 | #[prelude_import] |
661 | use clone::*; | 661 | use clone::*; |
662 | mod clone { | 662 | mod clone { |