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