@@ -50,5 +50,116 @@ LL | let layout = alloc::Layout::new::<u8>();
5050 |
5151 = help: consider importing the item from `core`
5252
53- error: aborting due to 6 previous errors
53+ error: used import from `std` instead of `core`
54+ --> tests/ui/std_instead_of_core_unfixable.rs:40:14
55+ |
56+ LL | fmt::Result,
57+ | ^^^^^^
58+ |
59+ = help: consider importing the item from `core`
60+
61+ error: used import from `std` instead of `alloc`
62+ --> tests/ui/std_instead_of_core_unfixable.rs:46:9
63+ |
64+ LL | Arc,
65+ | ^^^
66+ |
67+ = help: consider importing the item from `alloc`
68+
69+ error: used import from `std` instead of `core`
70+ --> tests/ui/std_instead_of_core_unfixable.rs:62:26
71+ |
72+ LL | fmt::{*, Formatter},
73+ | ^^^^^^^^^
74+ |
75+ = help: consider importing the item from `core`
76+
77+ error: used import from `std` instead of `core`
78+ --> tests/ui/std_instead_of_core_unfixable.rs:67:23
79+ |
80+ LL | sync::atomic,
81+ | ^^^^^^
82+ |
83+ = help: consider importing the item from `core`
84+
85+ error: used import from `std` instead of `core`
86+ --> tests/ui/std_instead_of_core_unfixable.rs:69:17
87+ |
88+ LL | / sync::atomic::{
89+ LL | | AtomicUsize,
90+ LL | | AtomicU8,
91+ LL | | Ordering,
92+ LL | | },
93+ | |_________________^
94+ |
95+ = help: consider importing the item from `core`
96+
97+ error: used import from `std` instead of `alloc`
98+ --> tests/ui/std_instead_of_core_unfixable.rs:62:17
99+ |
100+ LL | fmt::{*, Formatter},
101+ | ^^^
102+ |
103+ = help: consider importing the item from `alloc`
104+
105+ error: used import from `alloc` instead of `core`
106+ --> tests/ui/std_instead_of_core_unfixable.rs:79:18
107+ |
108+ LL | fmt::Result as FmtResult,
109+ | ^^^^^^
110+ |
111+ = help: consider importing the item from `core`
112+ = note: `-D clippy::alloc-instead-of-core` implied by `-D warnings`
113+ = help: to override `-D warnings` add `#[allow(clippy::alloc_instead_of_core)]`
114+
115+ error: used import from `std` instead of `alloc`
116+ --> tests/ui/std_instead_of_core_unfixable.rs:89:9
117+ |
118+ LL | use std::fmt;
119+ | ^^^
120+ |
121+ = help: consider importing the item from `alloc`
122+ = help: consider adding an `extern crate` statement at the crate root
123+
124+ error: used import from `alloc` instead of `core`
125+ --> tests/ui/std_instead_of_core_unfixable.rs:94:10
126+ |
127+ LL | impl fmt::Display for S {
128+ | ^^^^^^^^^^^^
129+ |
130+ = help: consider importing the item from `core`
131+
132+ error: used import from `alloc` instead of `core`
133+ --> tests/ui/std_instead_of_core_unfixable.rs:98:21
134+ |
135+ LL | _: &mut fmt::Formatter<'_>,
136+ | ^^^^^^^^^^^^^^
137+ |
138+ = help: consider importing the item from `core`
139+
140+ error: used import from `alloc` instead of `core`
141+ --> tests/ui/std_instead_of_core_unfixable.rs:100:14
142+ |
143+ LL | ) -> fmt::Result {
144+ | ^^^^^^^^^^^
145+ |
146+ = help: consider importing the item from `core`
147+
148+ error: used import from `std` instead of `core`
149+ --> tests/ui/std_instead_of_core_unfixable.rs:114:15
150+ |
151+ LL | iter::repeat_with,
152+ | ^^^^^^^^^^^
153+ |
154+ = help: consider importing the item from `core`
155+
156+ error: used import from `alloc` instead of `core`
157+ --> tests/ui/std_instead_of_core_unfixable.rs:121:9
158+ |
159+ LL | Layout,
160+ | ^^^^^^
161+ |
162+ = help: consider importing the item from `core`
163+
164+ error: aborting due to 19 previous errors
54165
0 commit comments