1
1
error: used import from `std` instead of `core`
2
- --> tests/ui/std_instead_of_core.rs:14 :9
2
+ --> tests/ui/std_instead_of_core.rs:15 :9
3
3
|
4
4
LL | use std::hash::Hasher;
5
5
| ^^^ help: consider importing the item from `core`: `core`
@@ -8,55 +8,115 @@ LL | use std::hash::Hasher;
8
8
= help: to override `-D warnings` add `#[allow(clippy::std_instead_of_core)]`
9
9
10
10
error: used import from `std` instead of `core`
11
- --> tests/ui/std_instead_of_core.rs:17 :11
11
+ --> tests/ui/std_instead_of_core.rs:18 :11
12
12
|
13
13
LL | use ::std::hash::Hash;
14
14
| ^^^ help: consider importing the item from `core`: `core`
15
15
16
16
error: used import from `std` instead of `core`
17
- --> tests/ui/std_instead_of_core.rs:23 :9
17
+ --> tests/ui/std_instead_of_core.rs:24 :9
18
18
|
19
19
LL | use std::fmt::{Debug, Result};
20
20
| ^^^ help: consider importing the item from `core`: `core`
21
21
22
22
error: used import from `std` instead of `core`
23
- --> tests/ui/std_instead_of_core.rs:28 :9
23
+ --> tests/ui/std_instead_of_core.rs:29 :9
24
24
|
25
25
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:35:15
29
+ --> tests/ui/std_instead_of_core.rs:36:31
30
+ |
31
+ LL | use std::{io::Write as _, fmt::Debug as _, fmt::Alignment as _};
32
+ | ^^^^^^^^^^
33
+ |
34
+ = help: consider importing the item from `core`
35
+
36
+ error: used import from `std` instead of `core`
37
+ --> tests/ui/std_instead_of_core.rs:36:48
38
+ |
39
+ LL | use std::{io::Write as _, fmt::Debug as _, fmt::Alignment as _};
40
+ | ^^^^^^^^^^^^^^
41
+ |
42
+ = help: consider importing the item from `core`
43
+
44
+ error: used import from `std` instead of `core`
45
+ --> tests/ui/std_instead_of_core.rs:40:15
46
+ |
47
+ LL | use std::{fmt::Alignment as _, io::Write as _, fmt::Debug as _};
48
+ | ^^^^^^^^^^^^^^
49
+ |
50
+ = help: consider importing the item from `core`
51
+
52
+ error: used import from `std` instead of `core`
53
+ --> tests/ui/std_instead_of_core.rs:40:52
54
+ |
55
+ LL | use std::{fmt::Alignment as _, io::Write as _, fmt::Debug as _};
56
+ | ^^^^^^^^^^
57
+ |
58
+ = help: consider importing the item from `core`
59
+
60
+ error: used import from `std` instead of `core`
61
+ --> tests/ui/std_instead_of_core.rs:44:15
62
+ |
63
+ LL | use std::{fmt::Debug as _, fmt::Alignment as _, io::Write as _};
64
+ | ^^^^^^^^^^
65
+ |
66
+ = help: consider importing the item from `core`
67
+
68
+ error: used import from `std` instead of `core`
69
+ --> tests/ui/std_instead_of_core.rs:44:32
70
+ |
71
+ LL | use std::{fmt::Debug as _, fmt::Alignment as _, io::Write as _};
72
+ | ^^^^^^^^^^^^^^
73
+ |
74
+ = help: consider importing the item from `core`
75
+
76
+ error: used import from `std` instead of `core`
77
+ --> tests/ui/std_instead_of_core.rs:57:9
78
+ |
79
+ LL | use std::{
80
+ | ^^^ help: consider importing the item from `core`: `core`
81
+
82
+ error: used import from `std` instead of `core`
83
+ --> tests/ui/std_instead_of_core.rs:65:9
84
+ |
85
+ LL | use std::{
86
+ | ^^^ help: consider importing the item from `core`: `core`
87
+
88
+ error: used import from `std` instead of `core`
89
+ --> tests/ui/std_instead_of_core.rs:72:15
30
90
|
31
91
LL | let ptr = std::ptr::null::<u32>();
32
92
| ^^^ help: consider importing the item from `core`: `core`
33
93
34
94
error: used import from `std` instead of `core`
35
- --> tests/ui/std_instead_of_core.rs:37 :21
95
+ --> tests/ui/std_instead_of_core.rs:74 :21
36
96
|
37
97
LL | let ptr_mut = ::std::ptr::null_mut::<usize>();
38
98
| ^^^ help: consider importing the item from `core`: `core`
39
99
40
100
error: used import from `std` instead of `core`
41
- --> tests/ui/std_instead_of_core.rs:41 :16
101
+ --> tests/ui/std_instead_of_core.rs:78 :16
42
102
|
43
103
LL | let cell = std::cell::Cell::new(8u32);
44
104
| ^^^ help: consider importing the item from `core`: `core`
45
105
46
106
error: used import from `std` instead of `core`
47
- --> tests/ui/std_instead_of_core.rs:43 :27
107
+ --> tests/ui/std_instead_of_core.rs:80 :27
48
108
|
49
109
LL | let cell_absolute = ::std::cell::Cell::new(8u32);
50
110
| ^^^ help: consider importing the item from `core`: `core`
51
111
52
112
error: used import from `std` instead of `core`
53
- --> tests/ui/std_instead_of_core.rs:52 :9
113
+ --> tests/ui/std_instead_of_core.rs:89 :9
54
114
|
55
115
LL | use std::iter::Iterator;
56
116
| ^^^ help: consider importing the item from `core`: `core`
57
117
58
118
error: used import from `std` instead of `alloc`
59
- --> tests/ui/std_instead_of_core.rs:59 :9
119
+ --> tests/ui/std_instead_of_core.rs:96 :9
60
120
|
61
121
LL | use std::vec;
62
122
| ^^^ help: consider importing the item from `alloc`: `alloc`
@@ -65,19 +125,19 @@ LL | use std::vec;
65
125
= help: to override `-D warnings` add `#[allow(clippy::std_instead_of_alloc)]`
66
126
67
127
error: used import from `std` instead of `alloc`
68
- --> tests/ui/std_instead_of_core.rs:61 :9
128
+ --> tests/ui/std_instead_of_core.rs:98 :9
69
129
|
70
130
LL | use std::vec::Vec;
71
131
| ^^^ help: consider importing the item from `alloc`: `alloc`
72
132
73
133
error: used import from `alloc` instead of `core`
74
- --> tests/ui/std_instead_of_core.rs:67 :9
134
+ --> tests/ui/std_instead_of_core.rs:104 :9
75
135
|
76
136
LL | use alloc::slice::from_ref;
77
137
| ^^^^^ help: consider importing the item from `core`: `core`
78
138
|
79
139
= note: `-D clippy::alloc-instead-of-core` implied by `-D warnings`
80
140
= help: to override `-D warnings` add `#[allow(clippy::alloc_instead_of_core)]`
81
141
82
- error: aborting due to 12 previous errors
142
+ error: aborting due to 20 previous errors
83
143
0 commit comments