@@ -2,100 +2,73 @@ error: used import from `std` instead of `core`
22 --> $DIR/std_instead_of_core.rs:9:9
33 |
44LL | use std::hash::Hasher;
5- | ^^^^^^^^^^^^^^^^^
5+ | ^^^ help: consider importing the item from `core`: `core`
66 |
7- = help: consider importing the item from `core`
87 = note: `-D clippy::std-instead-of-core` implied by `-D warnings`
98
109error: used import from `std` instead of `core`
11- --> $DIR/std_instead_of_core.rs:12:9
10+ --> $DIR/std_instead_of_core.rs:12:11
1211 |
1312LL | use ::std::hash::Hash;
14- | ^^^^^^^^^^^^^^^^^
15- |
16- = help: consider importing the item from `core`
13+ | ^^^ help: consider importing the item from `core`: `core`
1714
1815error: used import from `std` instead of `core`
19- --> $DIR/std_instead_of_core.rs:18:20
16+ --> $DIR/std_instead_of_core.rs:18:9
2017 |
2118LL | use std::fmt::{Debug, Result};
22- | ^^^^^
23- |
24- = help: consider importing the item from `core`
25-
26- error: used import from `std` instead of `core`
27- --> $DIR/std_instead_of_core.rs:18:27
28- |
29- LL | use std::fmt::{Debug, Result};
30- | ^^^^^^
31- |
32- = help: consider importing the item from `core`
19+ | ^^^ help: consider importing the item from `core`: `core`
3320
3421error: used import from `std` instead of `core`
35- --> $DIR/std_instead_of_core.rs:23 :15
22+ --> $DIR/std_instead_of_core.rs:22 :15
3623 |
3724LL | let ptr = std::ptr::null::<u32>();
38- | ^^^^^^^^^^^^^^^^^^^^^
39- |
40- = help: consider importing the item from `core`
25+ | ^^^ help: consider importing the item from `core`: `core`
4126
4227error: used import from `std` instead of `core`
43- --> $DIR/std_instead_of_core.rs:25:19
28+ --> $DIR/std_instead_of_core.rs:24:21
4429 |
4530LL | let ptr_mut = ::std::ptr::null_mut::<usize>();
46- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
47- |
48- = help: consider importing the item from `core`
31+ | ^^^ help: consider importing the item from `core`: `core`
4932
5033error: used import from `std` instead of `core`
51- --> $DIR/std_instead_of_core.rs:29 :16
34+ --> $DIR/std_instead_of_core.rs:28 :16
5235 |
5336LL | let cell = std::cell::Cell::new(8u32);
54- | ^^^^^^^^^^^^^^^
55- |
56- = help: consider importing the item from `core`
37+ | ^^^ help: consider importing the item from `core`: `core`
5738
5839error: used import from `std` instead of `core`
59- --> $DIR/std_instead_of_core.rs:31:25
40+ --> $DIR/std_instead_of_core.rs:30:27
6041 |
6142LL | let cell_absolute = ::std::cell::Cell::new(8u32);
62- | ^^^^^^^^^^^^^^^^^
63- |
64- = help: consider importing the item from `core`
43+ | ^^^ help: consider importing the item from `core`: `core`
6544
6645error: used import from `std` instead of `core`
67- --> $DIR/std_instead_of_core.rs:40 :9
46+ --> $DIR/std_instead_of_core.rs:39 :9
6847 |
6948LL | use std::iter::Iterator;
70- | ^^^^^^^^^^^^^^^^^^^
71- |
72- = help: consider importing the item from `core`
49+ | ^^^ help: consider importing the item from `core`: `core`
7350
7451error: used import from `std` instead of `alloc`
75- --> $DIR/std_instead_of_core.rs:47 :9
52+ --> $DIR/std_instead_of_core.rs:46 :9
7653 |
7754LL | use std::vec;
78- | ^^^^^^^^
55+ | ^^^ help: consider importing the item from `alloc`: `alloc`
7956 |
80- = help: consider importing the item from `alloc`
8157 = note: `-D clippy::std-instead-of-alloc` implied by `-D warnings`
8258
8359error: used import from `std` instead of `alloc`
84- --> $DIR/std_instead_of_core.rs:49 :9
60+ --> $DIR/std_instead_of_core.rs:48 :9
8561 |
8662LL | use std::vec::Vec;
87- | ^^^^^^^^^^^^^
88- |
89- = help: consider importing the item from `alloc`
63+ | ^^^ help: consider importing the item from `alloc`: `alloc`
9064
9165error: used import from `alloc` instead of `core`
92- --> $DIR/std_instead_of_core.rs:55 :9
66+ --> $DIR/std_instead_of_core.rs:54 :9
9367 |
9468LL | use alloc::slice::from_ref;
95- | ^^^^^^^^^^^^^^^^^^^^^^
69+ | ^^^^^ help: consider importing the item from `core`: `core`
9670 |
97- = help: consider importing the item from `core`
9871 = note: `-D clippy::alloc-instead-of-core` implied by `-D warnings`
9972
100- error: aborting due to 12 previous errors
73+ error: aborting due to 11 previous errors
10174
0 commit comments