@@ -13,6 +13,12 @@ error: used import from `std` instead of `core`
1313LL | use ::std::hash::Hash;
1414 | ^^^ help: consider importing the item from `core`: `core`
1515
16+ error: used import from `std` instead of `core`
17+ --> tests/ui/std_instead_of_core.rs:20:9
18+ |
19+ LL | use std::env;
20+ | ^^^ help: consider importing the item from `core`: `core`
21+
1622error: used import from `std` instead of `core`
1723 --> tests/ui/std_instead_of_core.rs:23:9
1824 |
@@ -26,37 +32,43 @@ LL | use std::{
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:35:15
35+ --> tests/ui/std_instead_of_core.rs:35:9
36+ |
37+ LL | use std::{io::Write, fmt::Display};
38+ | ^^^ help: consider importing the item from `core`: `core`
39+
40+ error: used import from `std` instead of `core`
41+ --> tests/ui/std_instead_of_core.rs:39:15
3042 |
3143LL | let ptr = std::ptr::null::<u32>();
3244 | ^^^ help: consider importing the item from `core`: `core`
3345
3446error: used import from `std` instead of `core`
35- --> tests/ui/std_instead_of_core.rs:37 :21
47+ --> tests/ui/std_instead_of_core.rs:41 :21
3648 |
3749LL | let ptr_mut = ::std::ptr::null_mut::<usize>();
3850 | ^^^ help: consider importing the item from `core`: `core`
3951
4052error: used import from `std` instead of `core`
41- --> tests/ui/std_instead_of_core.rs:41 :16
53+ --> tests/ui/std_instead_of_core.rs:45 :16
4254 |
4355LL | let cell = std::cell::Cell::new(8u32);
4456 | ^^^ help: consider importing the item from `core`: `core`
4557
4658error: used import from `std` instead of `core`
47- --> tests/ui/std_instead_of_core.rs:43 :27
59+ --> tests/ui/std_instead_of_core.rs:47 :27
4860 |
4961LL | let cell_absolute = ::std::cell::Cell::new(8u32);
5062 | ^^^ help: consider importing the item from `core`: `core`
5163
5264error: used import from `std` instead of `core`
53- --> tests/ui/std_instead_of_core.rs:52 :9
65+ --> tests/ui/std_instead_of_core.rs:56 :9
5466 |
5567LL | use std::iter::Iterator;
5668 | ^^^ help: consider importing the item from `core`: `core`
5769
5870error: used import from `std` instead of `alloc`
59- --> tests/ui/std_instead_of_core.rs:59 :9
71+ --> tests/ui/std_instead_of_core.rs:63 :9
6072 |
6173LL | use std::vec;
6274 | ^^^ help: consider importing the item from `alloc`: `alloc`
@@ -65,19 +77,19 @@ LL | use std::vec;
6577 = help: to override `-D warnings` add `#[allow(clippy::std_instead_of_alloc)]`
6678
6779error: used import from `std` instead of `alloc`
68- --> tests/ui/std_instead_of_core.rs:61 :9
80+ --> tests/ui/std_instead_of_core.rs:65 :9
6981 |
7082LL | use std::vec::Vec;
7183 | ^^^ help: consider importing the item from `alloc`: `alloc`
7284
7385error: used import from `alloc` instead of `core`
74- --> tests/ui/std_instead_of_core.rs:67 :9
86+ --> tests/ui/std_instead_of_core.rs:71 :9
7587 |
7688LL | use alloc::slice::from_ref;
7789 | ^^^^^ help: consider importing the item from `core`: `core`
7890 |
7991 = note: `-D clippy::alloc-instead-of-core` implied by `-D warnings`
8092 = help: to override `-D warnings` add `#[allow(clippy::alloc_instead_of_core)]`
8193
82- error: aborting due to 12 previous errors
94+ error: aborting due to 14 previous errors
8395
0 commit comments