]> git.lizzy.rs Git - rust.git/blob - tests/ui/std_instead_of_core.stderr
Merge commit '3c7e7dbc1583a0b06df5bd7623dd354a4debd23d' into clippyup
[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    = note: `-D clippy::std-instead-of-core` implied by `-D warnings`
8    = help: consider importing the item from `core`
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 `alloc`
67   --> $DIR/std_instead_of_core.rs:32:9
68    |
69 LL |     use std::vec;
70    |         ^^^^^^^^
71    |
72    = note: `-D clippy::std-instead-of-alloc` implied by `-D warnings`
73    = help: consider importing the item from `alloc`
74
75 error: used import from `std` instead of `alloc`
76   --> $DIR/std_instead_of_core.rs:33:9
77    |
78 LL |     use std::vec::Vec;
79    |         ^^^^^^^^^^^^^
80    |
81    = help: consider importing the item from `alloc`
82
83 error: used import from `alloc` instead of `core`
84   --> $DIR/std_instead_of_core.rs:38:9
85    |
86 LL |     use alloc::slice::from_ref;
87    |         ^^^^^^^^^^^^^^^^^^^^^^
88    |
89    = note: `-D clippy::alloc-instead-of-core` implied by `-D warnings`
90    = help: consider importing the item from `core`
91
92 error: aborting due to 11 previous errors
93