summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/std_instead_of_core.stderr
blob: d2102497350bd8d696ffff5008f721820ee96bf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
error: used import from `std` instead of `core`
  --> $DIR/std_instead_of_core.rs:9:9
   |
LL |     use std::hash::Hasher;
   |         ^^^^^^^^^^^^^^^^^
   |
   = help: consider importing the item from `core`
   = note: `-D clippy::std-instead-of-core` implied by `-D warnings`

error: used import from `std` instead of `core`
  --> $DIR/std_instead_of_core.rs:11:9
   |
LL |     use ::std::hash::Hash;
   |         ^^^^^^^^^^^^^^^^^
   |
   = help: consider importing the item from `core`

error: used import from `std` instead of `core`
  --> $DIR/std_instead_of_core.rs:16:20
   |
LL |     use std::fmt::{Debug, Result};
   |                    ^^^^^
   |
   = help: consider importing the item from `core`

error: used import from `std` instead of `core`
  --> $DIR/std_instead_of_core.rs:16:27
   |
LL |     use std::fmt::{Debug, Result};
   |                           ^^^^^^
   |
   = help: consider importing the item from `core`

error: used import from `std` instead of `core`
  --> $DIR/std_instead_of_core.rs:19:15
   |
LL |     let ptr = std::ptr::null::<u32>();
   |               ^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider importing the item from `core`

error: used import from `std` instead of `core`
  --> $DIR/std_instead_of_core.rs:20:19
   |
LL |     let ptr_mut = ::std::ptr::null_mut::<usize>();
   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider importing the item from `core`

error: used import from `std` instead of `core`
  --> $DIR/std_instead_of_core.rs:23:16
   |
LL |     let cell = std::cell::Cell::new(8u32);
   |                ^^^^^^^^^^^^^^^
   |
   = help: consider importing the item from `core`

error: used import from `std` instead of `core`
  --> $DIR/std_instead_of_core.rs:24:25
   |
LL |     let cell_absolute = ::std::cell::Cell::new(8u32);
   |                         ^^^^^^^^^^^^^^^^^
   |
   = help: consider importing the item from `core`

error: used import from `std` instead of `core`
  --> $DIR/std_instead_of_core.rs:32:9
   |
LL |     use std::iter::Iterator;
   |         ^^^^^^^^^^^^^^^^^^^
   |
   = help: consider importing the item from `core`

error: used import from `std` instead of `alloc`
  --> $DIR/std_instead_of_core.rs:38:9
   |
LL |     use std::vec;
   |         ^^^^^^^^
   |
   = help: consider importing the item from `alloc`
   = note: `-D clippy::std-instead-of-alloc` implied by `-D warnings`

error: used import from `std` instead of `alloc`
  --> $DIR/std_instead_of_core.rs:39:9
   |
LL |     use std::vec::Vec;
   |         ^^^^^^^^^^^^^
   |
   = help: consider importing the item from `alloc`

error: used import from `alloc` instead of `core`
  --> $DIR/std_instead_of_core.rs:44:9
   |
LL |     use alloc::slice::from_ref;
   |         ^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider importing the item from `core`
   = note: `-D clippy::alloc-instead-of-core` implied by `-D warnings`

error: aborting due to 12 previous errors