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