@@ -2,100 +2,73 @@ error: used import from `std` instead of `core`
2
2
--> $DIR/std_instead_of_core.rs:9:9
3
3
|
4
4
LL | use std::hash::Hasher;
5
- | ^^^^^^^^^^^^^^^^^
5
+ | ^^^ help: consider importing the item from `core`: `core`
6
6
|
7
- = help: consider importing the item from `core`
8
7
= note: `-D clippy::std-instead-of-core` implied by `-D warnings`
9
8
10
9
error: used import from `std` instead of `core`
11
- --> $DIR/std_instead_of_core.rs:12:9
10
+ --> $DIR/std_instead_of_core.rs:12:11
12
11
|
13
12
LL | use ::std::hash::Hash;
14
- | ^^^^^^^^^^^^^^^^^
15
- |
16
- = help: consider importing the item from `core`
13
+ | ^^^ help: consider importing the item from `core`: `core`
17
14
18
15
error: used import from `std` instead of `core`
19
- --> $DIR/std_instead_of_core.rs:18:20
16
+ --> $DIR/std_instead_of_core.rs:18:9
20
17
|
21
18
LL | use std::fmt::{Debug, Result};
22
- | ^^^^^
23
- |
24
- = help: consider importing the item from `core`
25
-
26
- error: used import from `std` instead of `core`
27
- --> $DIR/std_instead_of_core.rs:18:27
28
- |
29
- LL | use std::fmt::{Debug, Result};
30
- | ^^^^^^
31
- |
32
- = help: consider importing the item from `core`
19
+ | ^^^ help: consider importing the item from `core`: `core`
33
20
34
21
error: used import from `std` instead of `core`
35
- --> $DIR/std_instead_of_core.rs:23 :15
22
+ --> $DIR/std_instead_of_core.rs:22 :15
36
23
|
37
24
LL | let ptr = std::ptr::null::<u32>();
38
- | ^^^^^^^^^^^^^^^^^^^^^
39
- |
40
- = help: consider importing the item from `core`
25
+ | ^^^ help: consider importing the item from `core`: `core`
41
26
42
27
error: used import from `std` instead of `core`
43
- --> $DIR/std_instead_of_core.rs:25:19
28
+ --> $DIR/std_instead_of_core.rs:24:21
44
29
|
45
30
LL | let ptr_mut = ::std::ptr::null_mut::<usize>();
46
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
47
- |
48
- = help: consider importing the item from `core`
31
+ | ^^^ help: consider importing the item from `core`: `core`
49
32
50
33
error: used import from `std` instead of `core`
51
- --> $DIR/std_instead_of_core.rs:29 :16
34
+ --> $DIR/std_instead_of_core.rs:28 :16
52
35
|
53
36
LL | let cell = std::cell::Cell::new(8u32);
54
- | ^^^^^^^^^^^^^^^
55
- |
56
- = help: consider importing the item from `core`
37
+ | ^^^ help: consider importing the item from `core`: `core`
57
38
58
39
error: used import from `std` instead of `core`
59
- --> $DIR/std_instead_of_core.rs:31:25
40
+ --> $DIR/std_instead_of_core.rs:30:27
60
41
|
61
42
LL | let cell_absolute = ::std::cell::Cell::new(8u32);
62
- | ^^^^^^^^^^^^^^^^^
63
- |
64
- = help: consider importing the item from `core`
43
+ | ^^^ help: consider importing the item from `core`: `core`
65
44
66
45
error: used import from `std` instead of `core`
67
- --> $DIR/std_instead_of_core.rs:40 :9
46
+ --> $DIR/std_instead_of_core.rs:39 :9
68
47
|
69
48
LL | use std::iter::Iterator;
70
- | ^^^^^^^^^^^^^^^^^^^
71
- |
72
- = help: consider importing the item from `core`
49
+ | ^^^ help: consider importing the item from `core`: `core`
73
50
74
51
error: used import from `std` instead of `alloc`
75
- --> $DIR/std_instead_of_core.rs:47 :9
52
+ --> $DIR/std_instead_of_core.rs:46 :9
76
53
|
77
54
LL | use std::vec;
78
- | ^^^^^^^^
55
+ | ^^^ help: consider importing the item from `alloc`: `alloc`
79
56
|
80
- = help: consider importing the item from `alloc`
81
57
= note: `-D clippy::std-instead-of-alloc` implied by `-D warnings`
82
58
83
59
error: used import from `std` instead of `alloc`
84
- --> $DIR/std_instead_of_core.rs:49 :9
60
+ --> $DIR/std_instead_of_core.rs:48 :9
85
61
|
86
62
LL | use std::vec::Vec;
87
- | ^^^^^^^^^^^^^
88
- |
89
- = help: consider importing the item from `alloc`
63
+ | ^^^ help: consider importing the item from `alloc`: `alloc`
90
64
91
65
error: used import from `alloc` instead of `core`
92
- --> $DIR/std_instead_of_core.rs:55 :9
66
+ --> $DIR/std_instead_of_core.rs:54 :9
93
67
|
94
68
LL | use alloc::slice::from_ref;
95
- | ^^^^^^^^^^^^^^^^^^^^^^
69
+ | ^^^^^ help: consider importing the item from `core`: `core`
96
70
|
97
- = help: consider importing the item from `core`
98
71
= note: `-D clippy::alloc-instead-of-core` implied by `-D warnings`
99
72
100
- error: aborting due to 12 previous errors
73
+ error: aborting due to 11 previous errors
101
74
0 commit comments