11error: used import from `std` instead of `core`
2- --> tests/ui/std_instead_of_core.rs:15 :9
2+ --> tests/ui/std_instead_of_core.rs:14 :9
33 |
44LL | use std::hash::Hasher;
55 | ^^^ help: consider importing the item from `core`: `core`
@@ -8,49 +8,55 @@ 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- --> tests/ui/std_instead_of_core.rs:18 :11
11+ --> tests/ui/std_instead_of_core.rs:17 :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- --> tests/ui/std_instead_of_core.rs:24 :9
17+ --> tests/ui/std_instead_of_core.rs:23 :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- --> tests/ui/std_instead_of_core.rs:28:15
23+ --> tests/ui/std_instead_of_core.rs:28:9
24+ |
25+ LL | use std::{
26+ | ^^^ help: consider importing the item from `core`: `core`
27+
28+ error: used import from `std` instead of `core`
29+ --> tests/ui/std_instead_of_core.rs:35:15
2430 |
2531LL | let ptr = std::ptr::null::<u32>();
2632 | ^^^ help: consider importing the item from `core`: `core`
2733
2834error: used import from `std` instead of `core`
29- --> tests/ui/std_instead_of_core.rs:30 :21
35+ --> tests/ui/std_instead_of_core.rs:37 :21
3036 |
3137LL | let ptr_mut = ::std::ptr::null_mut::<usize>();
3238 | ^^^ help: consider importing the item from `core`: `core`
3339
3440error: used import from `std` instead of `core`
35- --> tests/ui/std_instead_of_core.rs:34 :16
41+ --> tests/ui/std_instead_of_core.rs:41 :16
3642 |
3743LL | let cell = std::cell::Cell::new(8u32);
3844 | ^^^ help: consider importing the item from `core`: `core`
3945
4046error: used import from `std` instead of `core`
41- --> tests/ui/std_instead_of_core.rs:36 :27
47+ --> tests/ui/std_instead_of_core.rs:43 :27
4248 |
4349LL | let cell_absolute = ::std::cell::Cell::new(8u32);
4450 | ^^^ help: consider importing the item from `core`: `core`
4551
4652error: used import from `std` instead of `core`
47- --> tests/ui/std_instead_of_core.rs:45 :9
53+ --> tests/ui/std_instead_of_core.rs:52 :9
4854 |
4955LL | use std::iter::Iterator;
5056 | ^^^ help: consider importing the item from `core`: `core`
5157
5258error: used import from `std` instead of `alloc`
53- --> tests/ui/std_instead_of_core.rs:52 :9
59+ --> tests/ui/std_instead_of_core.rs:59 :9
5460 |
5561LL | use std::vec;
5662 | ^^^ help: consider importing the item from `alloc`: `alloc`
@@ -59,19 +65,19 @@ LL | use std::vec;
5965 = help: to override `-D warnings` add `#[allow(clippy::std_instead_of_alloc)]`
6066
6167error: used import from `std` instead of `alloc`
62- --> tests/ui/std_instead_of_core.rs:54 :9
68+ --> tests/ui/std_instead_of_core.rs:61 :9
6369 |
6470LL | use std::vec::Vec;
6571 | ^^^ help: consider importing the item from `alloc`: `alloc`
6672
6773error: used import from `alloc` instead of `core`
68- --> tests/ui/std_instead_of_core.rs:60 :9
74+ --> tests/ui/std_instead_of_core.rs:67 :9
6975 |
7076LL | use alloc::slice::from_ref;
7177 | ^^^^^ help: consider importing the item from `core`: `core`
7278 |
7379 = note: `-D clippy::alloc-instead-of-core` implied by `-D warnings`
7480 = help: to override `-D warnings` add `#[allow(clippy::alloc_instead_of_core)]`
7581
76- error: aborting due to 11 previous errors
82+ error: aborting due to 12 previous errors
7783
0 commit comments