From 6a5014329aecf73da81943216729ab64fa255368 Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Tue, 28 Apr 2020 01:48:55 +0800 Subject: Use core instead of std for builtin derive macros --- crates/ra_hir_ty/src/tests/macros.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/ra_hir_ty/src/tests') 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() { fn infer_derive_clone_simple() { let (db, pos) = TestDB::with_position( r#" -//- /main.rs crate:main deps:std +//- /main.rs crate:main deps:core #[derive(Clone)] struct S; fn test() { S.clone()<|>; } -//- /lib.rs crate:std +//- /lib.rs crate:core #[prelude_import] use clone::*; mod clone { @@ -646,7 +646,7 @@ mod clone { fn infer_derive_clone_with_params() { let (db, pos) = TestDB::with_position( r#" -//- /main.rs crate:main deps:std +//- /main.rs crate:main deps:core #[derive(Clone)] struct S; #[derive(Clone)] @@ -656,7 +656,7 @@ fn test() { (Wrapper(S).clone(), Wrapper(NonClone).clone())<|>; } -//- /lib.rs crate:std +//- /lib.rs crate:core #[prelude_import] use clone::*; mod clone { -- cgit v1.2.3