@@ -32,43 +32,37 @@ LL | use std::{
32
32
| ^^^ help: consider importing the item from `core`: `core`
33
33
34
34
error: used import from `std` instead of `core`
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
35
+ --> tests/ui/std_instead_of_core.rs:35:15
42
36
|
43
37
LL | let ptr = std::ptr::null::<u32>();
44
38
| ^^^ help: consider importing the item from `core`: `core`
45
39
46
40
error: used import from `std` instead of `core`
47
- --> tests/ui/std_instead_of_core.rs:41 :21
41
+ --> tests/ui/std_instead_of_core.rs:37 :21
48
42
|
49
43
LL | let ptr_mut = ::std::ptr::null_mut::<usize>();
50
44
| ^^^ help: consider importing the item from `core`: `core`
51
45
52
46
error: used import from `std` instead of `core`
53
- --> tests/ui/std_instead_of_core.rs:45 :16
47
+ --> tests/ui/std_instead_of_core.rs:41 :16
54
48
|
55
49
LL | let cell = std::cell::Cell::new(8u32);
56
50
| ^^^ help: consider importing the item from `core`: `core`
57
51
58
52
error: used import from `std` instead of `core`
59
- --> tests/ui/std_instead_of_core.rs:47 :27
53
+ --> tests/ui/std_instead_of_core.rs:43 :27
60
54
|
61
55
LL | let cell_absolute = ::std::cell::Cell::new(8u32);
62
56
| ^^^ help: consider importing the item from `core`: `core`
63
57
64
58
error: used import from `std` instead of `core`
65
- --> tests/ui/std_instead_of_core.rs:56 :9
59
+ --> tests/ui/std_instead_of_core.rs:52 :9
66
60
|
67
61
LL | use std::iter::Iterator;
68
62
| ^^^ help: consider importing the item from `core`: `core`
69
63
70
64
error: used import from `std` instead of `alloc`
71
- --> tests/ui/std_instead_of_core.rs:63 :9
65
+ --> tests/ui/std_instead_of_core.rs:59 :9
72
66
|
73
67
LL | use std::vec;
74
68
| ^^^ help: consider importing the item from `alloc`: `alloc`
@@ -77,19 +71,19 @@ LL | use std::vec;
77
71
= help: to override `-D warnings` add `#[allow(clippy::std_instead_of_alloc)]`
78
72
79
73
error: used import from `std` instead of `alloc`
80
- --> tests/ui/std_instead_of_core.rs:65 :9
74
+ --> tests/ui/std_instead_of_core.rs:61 :9
81
75
|
82
76
LL | use std::vec::Vec;
83
77
| ^^^ help: consider importing the item from `alloc`: `alloc`
84
78
85
79
error: used import from `alloc` instead of `core`
86
- --> tests/ui/std_instead_of_core.rs:71 :9
80
+ --> tests/ui/std_instead_of_core.rs:67 :9
87
81
|
88
82
LL | use alloc::slice::from_ref;
89
83
| ^^^^^ help: consider importing the item from `core`: `core`
90
84
|
91
85
= note: `-D clippy::alloc-instead-of-core` implied by `-D warnings`
92
86
= help: to override `-D warnings` add `#[allow(clippy::alloc_instead_of_core)]`
93
87
94
- error: aborting due to 14 previous errors
88
+ error: aborting due to 13 previous errors
95
89
0 commit comments