]> git.lizzy.rs Git - rust.git/blob - tests/ui/std_instead_of_core.stderr
std_instead_of_core, std_instead_of_alloc, alloc_instead_of_core
[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:14: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:14: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:17: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:18: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:21: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:22: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:27:9
68    |
69 LL |     use std::vec::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 `alloc` instead of `core`
76   --> $DIR/std_instead_of_core.rs:32:9
77    |
78 LL |     use alloc::slice::from_ref;
79    |         ^^^^^^^^^^^^^^^^^^^^^^
80    |
81    = note: `-D clippy::alloc-instead-of-core` implied by `-D warnings`
82    = help: consider importing the item from `core`
83
84 error: aborting due to 10 previous errors
85