11error: used import from `std` instead of `core`
2- --> $DIR/std_instead_of_core.rs:9 :9
2+ --> $DIR/std_instead_of_core.rs:13 :9
33 |
44LL | use std::hash::Hasher;
55 | ^^^ help: consider importing the item from `core`: `core`
@@ -8,49 +8,49 @@ LL | use std::hash::Hasher;
88 = help: to override `-D warnings` add `#[allow(clippy::std_instead_of_core)]`
99
1010error: used import from `std` instead of `core`
11- --> $DIR/std_instead_of_core.rs:12 :11
11+ --> $DIR/std_instead_of_core.rs:16 :11
1212 |
1313LL | use ::std::hash::Hash;
1414 | ^^^ help: consider importing the item from `core`: `core`
1515
1616error: used import from `std` instead of `core`
17- --> $DIR/std_instead_of_core.rs:18 :9
17+ --> $DIR/std_instead_of_core.rs:22 :9
1818 |
1919LL | use std::fmt::{Debug, Result};
2020 | ^^^ help: consider importing the item from `core`: `core`
2121
2222error: used import from `std` instead of `core`
23- --> $DIR/std_instead_of_core.rs:22 :15
23+ --> $DIR/std_instead_of_core.rs:26 :15
2424 |
2525LL | let ptr = std::ptr::null::<u32>();
2626 | ^^^ help: consider importing the item from `core`: `core`
2727
2828error: used import from `std` instead of `core`
29- --> $DIR/std_instead_of_core.rs:24 :21
29+ --> $DIR/std_instead_of_core.rs:28 :21
3030 |
3131LL | let ptr_mut = ::std::ptr::null_mut::<usize>();
3232 | ^^^ help: consider importing the item from `core`: `core`
3333
3434error: used import from `std` instead of `core`
35- --> $DIR/std_instead_of_core.rs:28 :16
35+ --> $DIR/std_instead_of_core.rs:32 :16
3636 |
3737LL | let cell = std::cell::Cell::new(8u32);
3838 | ^^^ help: consider importing the item from `core`: `core`
3939
4040error: used import from `std` instead of `core`
41- --> $DIR/std_instead_of_core.rs:30 :27
41+ --> $DIR/std_instead_of_core.rs:34 :27
4242 |
4343LL | let cell_absolute = ::std::cell::Cell::new(8u32);
4444 | ^^^ help: consider importing the item from `core`: `core`
4545
4646error: used import from `std` instead of `core`
47- --> $DIR/std_instead_of_core.rs:39 :9
47+ --> $DIR/std_instead_of_core.rs:43 :9
4848 |
4949LL | use std::iter::Iterator;
5050 | ^^^ help: consider importing the item from `core`: `core`
5151
5252error: used import from `std` instead of `alloc`
53- --> $DIR/std_instead_of_core.rs:46 :9
53+ --> $DIR/std_instead_of_core.rs:50 :9
5454 |
5555LL | use std::vec;
5656 | ^^^ help: consider importing the item from `alloc`: `alloc`
@@ -59,13 +59,13 @@ LL | use std::vec;
5959 = help: to override `-D warnings` add `#[allow(clippy::std_instead_of_alloc)]`
6060
6161error: used import from `std` instead of `alloc`
62- --> $DIR/std_instead_of_core.rs:48 :9
62+ --> $DIR/std_instead_of_core.rs:52 :9
6363 |
6464LL | use std::vec::Vec;
6565 | ^^^ help: consider importing the item from `alloc`: `alloc`
6666
6767error: used import from `alloc` instead of `core`
68- --> $DIR/std_instead_of_core.rs:54 :9
68+ --> $DIR/std_instead_of_core.rs:58 :9
6969 |
7070LL | use alloc::slice::from_ref;
7171 | ^^^^^ help: consider importing the item from `core`: `core`
0 commit comments