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