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