@@ -2,103 +2,76 @@ 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 = help: to override `-D warnings` add `#[allow(clippy::std_instead_of_core)]`
109
1110error: used import from `std` instead of `core`
12- --> $DIR/std_instead_of_core.rs:12:9
11+ --> $DIR/std_instead_of_core.rs:12:11
1312 |
1413LL | use ::std::hash::Hash;
15- | ^^^^^^^^^^^^^^^^^
16- |
17- = help: consider importing the item from `core`
14+ | ^^^ help: consider importing the item from `core`: `core`
1815
1916error: used import from `std` instead of `core`
20- --> $DIR/std_instead_of_core.rs:18:20
17+ --> $DIR/std_instead_of_core.rs:18:9
2118 |
2219LL | use std::fmt::{Debug, Result};
23- | ^^^^^
24- |
25- = help: consider importing the item from `core`
26-
27- error: used import from `std` instead of `core`
28- --> $DIR/std_instead_of_core.rs:18:27
29- |
30- LL | use std::fmt::{Debug, Result};
31- | ^^^^^^
32- |
33- = help: consider importing the item from `core`
20+ | ^^^ help: consider importing the item from `core`: `core`
3421
3522error: used import from `std` instead of `core`
36- --> $DIR/std_instead_of_core.rs:23 :15
23+ --> $DIR/std_instead_of_core.rs:22 :15
3724 |
3825LL | let ptr = std::ptr::null::<u32>();
39- | ^^^^^^^^^^^^^^^^^^^^^
40- |
41- = help: consider importing the item from `core`
26+ | ^^^ help: consider importing the item from `core`: `core`
4227
4328error: used import from `std` instead of `core`
44- --> $DIR/std_instead_of_core.rs:25:19
29+ --> $DIR/std_instead_of_core.rs:24:21
4530 |
4631LL | let ptr_mut = ::std::ptr::null_mut::<usize>();
47- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
48- |
49- = help: consider importing the item from `core`
32+ | ^^^ help: consider importing the item from `core`: `core`
5033
5134error: used import from `std` instead of `core`
52- --> $DIR/std_instead_of_core.rs:29 :16
35+ --> $DIR/std_instead_of_core.rs:28 :16
5336 |
5437LL | let cell = std::cell::Cell::new(8u32);
55- | ^^^^^^^^^^^^^^^
56- |
57- = help: consider importing the item from `core`
38+ | ^^^ help: consider importing the item from `core`: `core`
5839
5940error: used import from `std` instead of `core`
60- --> $DIR/std_instead_of_core.rs:31:25
41+ --> $DIR/std_instead_of_core.rs:30:27
6142 |
6243LL | let cell_absolute = ::std::cell::Cell::new(8u32);
63- | ^^^^^^^^^^^^^^^^^
64- |
65- = help: consider importing the item from `core`
44+ | ^^^ help: consider importing the item from `core`: `core`
6645
6746error: used import from `std` instead of `core`
68- --> $DIR/std_instead_of_core.rs:40 :9
47+ --> $DIR/std_instead_of_core.rs:39 :9
6948 |
7049LL | use std::iter::Iterator;
71- | ^^^^^^^^^^^^^^^^^^^
72- |
73- = help: consider importing the item from `core`
50+ | ^^^ help: consider importing the item from `core`: `core`
7451
7552error: used import from `std` instead of `alloc`
76- --> $DIR/std_instead_of_core.rs:47 :9
53+ --> $DIR/std_instead_of_core.rs:46 :9
7754 |
7855LL | use std::vec;
79- | ^^^^^^^^
56+ | ^^^ help: consider importing the item from `alloc`: `alloc`
8057 |
81- = help: consider importing the item from `alloc`
8258 = note: `-D clippy::std-instead-of-alloc` implied by `-D warnings`
8359 = help: to override `-D warnings` add `#[allow(clippy::std_instead_of_alloc)]`
8460
8561error: used import from `std` instead of `alloc`
86- --> $DIR/std_instead_of_core.rs:49 :9
62+ --> $DIR/std_instead_of_core.rs:48 :9
8763 |
8864LL | use std::vec::Vec;
89- | ^^^^^^^^^^^^^
90- |
91- = help: consider importing the item from `alloc`
65+ | ^^^ help: consider importing the item from `alloc`: `alloc`
9266
9367error: used import from `alloc` instead of `core`
94- --> $DIR/std_instead_of_core.rs:55 :9
68+ --> $DIR/std_instead_of_core.rs:54 :9
9569 |
9670LL | use alloc::slice::from_ref;
97- | ^^^^^^^^^^^^^^^^^^^^^^
71+ | ^^^^^ help: consider importing the item from `core`: `core`
9872 |
99- = help: consider importing the item from `core`
10073 = note: `-D clippy::alloc-instead-of-core` implied by `-D warnings`
10174 = help: to override `-D warnings` add `#[allow(clippy::alloc_instead_of_core)]`
10275
103- error: aborting due to 12 previous errors
76+ error: aborting due to 11 previous errors
10477
0 commit comments