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