@@ -26,133 +26,133 @@ LL | use std::{
26
26
| ^^^ help: consider importing the item from `core`: `core`
27
27
28
28
error: used import from `std` instead of `core`
29
- --> tests/ui/std_instead_of_core.rs:36 :31
29
+ --> tests/ui/std_instead_of_core.rs:37 :31
30
30
|
31
31
LL | use std::{io::Write as _, fmt::Debug as _, fmt::Alignment as _};
32
32
| ^^^^^^^^^^
33
33
|
34
34
= help: consider importing the item from `core`
35
35
36
36
error: used import from `std` instead of `core`
37
- --> tests/ui/std_instead_of_core.rs:36 :48
37
+ --> tests/ui/std_instead_of_core.rs:37 :48
38
38
|
39
39
LL | use std::{io::Write as _, fmt::Debug as _, fmt::Alignment as _};
40
40
| ^^^^^^^^^^^^^^
41
41
|
42
42
= help: consider importing the item from `core`
43
43
44
44
error: used import from `std` instead of `core`
45
- --> tests/ui/std_instead_of_core.rs:40 :15
45
+ --> tests/ui/std_instead_of_core.rs:42 :15
46
46
|
47
47
LL | use std::{fmt::Alignment as _, io::Write as _, fmt::Debug as _};
48
48
| ^^^^^^^^^^^^^^
49
49
|
50
50
= help: consider importing the item from `core`
51
51
52
52
error: used import from `std` instead of `core`
53
- --> tests/ui/std_instead_of_core.rs:40 :52
53
+ --> tests/ui/std_instead_of_core.rs:42 :52
54
54
|
55
55
LL | use std::{fmt::Alignment as _, io::Write as _, fmt::Debug as _};
56
56
| ^^^^^^^^^^
57
57
|
58
58
= help: consider importing the item from `core`
59
59
60
60
error: used import from `std` instead of `core`
61
- --> tests/ui/std_instead_of_core.rs:44 :15
61
+ --> tests/ui/std_instead_of_core.rs:47 :15
62
62
|
63
63
LL | use std::{fmt::Debug as _, fmt::Alignment as _, io::Write as _};
64
64
| ^^^^^^^^^^
65
65
|
66
66
= help: consider importing the item from `core`
67
67
68
68
error: used import from `std` instead of `core`
69
- --> tests/ui/std_instead_of_core.rs:44 :32
69
+ --> tests/ui/std_instead_of_core.rs:47 :32
70
70
|
71
71
LL | use std::{fmt::Debug as _, fmt::Alignment as _, io::Write as _};
72
72
| ^^^^^^^^^^^^^^
73
73
|
74
74
= help: consider importing the item from `core`
75
75
76
76
error: used import from `std` instead of `core`
77
- --> tests/ui/std_instead_of_core.rs:51 :9
77
+ --> tests/ui/std_instead_of_core.rs:54 :9
78
78
|
79
79
LL | fmt::Debug as _,
80
80
| ^^^^^^^^^^
81
81
|
82
82
= help: consider importing the item from `core`
83
83
84
84
error: used import from `std` instead of `core`
85
- --> tests/ui/std_instead_of_core.rs:52 :9
85
+ --> tests/ui/std_instead_of_core.rs:55 :9
86
86
|
87
87
LL | fmt::Alignment as _,
88
88
| ^^^^^^^^^^^^^^
89
89
|
90
90
= help: consider importing the item from `core`
91
91
92
92
error: used import from `std` instead of `core`
93
- --> tests/ui/std_instead_of_core.rs:58 :9
93
+ --> tests/ui/std_instead_of_core.rs:61 :9
94
94
|
95
95
LL | fmt::Alignment as _,
96
96
| ^^^^^^^^^^^^^^
97
97
|
98
98
= help: consider importing the item from `core`
99
99
100
100
error: used import from `std` instead of `core`
101
- --> tests/ui/std_instead_of_core.rs:60 :9
101
+ --> tests/ui/std_instead_of_core.rs:63 :9
102
102
|
103
103
LL | fmt::Debug as _,
104
104
| ^^^^^^^^^^
105
105
|
106
106
= help: consider importing the item from `core`
107
107
108
108
error: used import from `std` instead of `core`
109
- --> tests/ui/std_instead_of_core.rs:66 :9
109
+ --> tests/ui/std_instead_of_core.rs:69 :9
110
110
|
111
111
LL | fmt::Alignment as _,
112
112
| ^^^^^^^^^^^^^^
113
113
|
114
114
= help: consider importing the item from `core`
115
115
116
116
error: used import from `std` instead of `core`
117
- --> tests/ui/std_instead_of_core.rs:67 :9
117
+ --> tests/ui/std_instead_of_core.rs:70 :9
118
118
|
119
119
LL | fmt::Debug as _,
120
120
| ^^^^^^^^^^
121
121
|
122
122
= help: consider importing the item from `core`
123
123
124
124
error: used import from `std` instead of `core`
125
- --> tests/ui/std_instead_of_core.rs:72 :15
125
+ --> tests/ui/std_instead_of_core.rs:75 :15
126
126
|
127
127
LL | let ptr = std::ptr::null::<u32>();
128
128
| ^^^ help: consider importing the item from `core`: `core`
129
129
130
130
error: used import from `std` instead of `core`
131
- --> tests/ui/std_instead_of_core.rs:74 :21
131
+ --> tests/ui/std_instead_of_core.rs:77 :21
132
132
|
133
133
LL | let ptr_mut = ::std::ptr::null_mut::<usize>();
134
134
| ^^^ help: consider importing the item from `core`: `core`
135
135
136
136
error: used import from `std` instead of `core`
137
- --> tests/ui/std_instead_of_core.rs:78 :16
137
+ --> tests/ui/std_instead_of_core.rs:81 :16
138
138
|
139
139
LL | let cell = std::cell::Cell::new(8u32);
140
140
| ^^^ help: consider importing the item from `core`: `core`
141
141
142
142
error: used import from `std` instead of `core`
143
- --> tests/ui/std_instead_of_core.rs:80 :27
143
+ --> tests/ui/std_instead_of_core.rs:83 :27
144
144
|
145
145
LL | let cell_absolute = ::std::cell::Cell::new(8u32);
146
146
| ^^^ help: consider importing the item from `core`: `core`
147
147
148
148
error: used import from `std` instead of `core`
149
- --> tests/ui/std_instead_of_core.rs:89 :9
149
+ --> tests/ui/std_instead_of_core.rs:92 :9
150
150
|
151
151
LL | use std::iter::Iterator;
152
152
| ^^^ help: consider importing the item from `core`: `core`
153
153
154
154
error: used import from `std` instead of `alloc`
155
- --> tests/ui/std_instead_of_core.rs:96 :9
155
+ --> tests/ui/std_instead_of_core.rs:99 :9
156
156
|
157
157
LL | use std::vec;
158
158
| ^^^ help: consider importing the item from `alloc`: `alloc`
@@ -161,13 +161,13 @@ LL | use std::vec;
161
161
= help: to override `-D warnings` add `#[allow(clippy::std_instead_of_alloc)]`
162
162
163
163
error: used import from `std` instead of `alloc`
164
- --> tests/ui/std_instead_of_core.rs:98 :9
164
+ --> tests/ui/std_instead_of_core.rs:101 :9
165
165
|
166
166
LL | use std::vec::Vec;
167
167
| ^^^ help: consider importing the item from `alloc`: `alloc`
168
168
169
169
error: used import from `alloc` instead of `core`
170
- --> tests/ui/std_instead_of_core.rs:104 :9
170
+ --> tests/ui/std_instead_of_core.rs:107 :9
171
171
|
172
172
LL | use alloc::slice::from_ref;
173
173
| ^^^^^ help: consider importing the item from `core`: `core`
@@ -176,7 +176,7 @@ LL | use alloc::slice::from_ref;
176
176
= help: to override `-D warnings` add `#[allow(clippy::alloc_instead_of_core)]`
177
177
178
178
error: used import from `std` instead of `core`
179
- --> tests/ui/std_instead_of_core.rs:121 :5
179
+ --> tests/ui/std_instead_of_core.rs:124 :5
180
180
|
181
181
LL | use std::fmt::{Debug as _, Result as _};
182
182
| ^^^ help: consider importing the item from `core`: `core`
0 commit comments