Skip to content

Commit c133aac

Browse files
committed
Auto merge of rust-lang#76409 - jonas-schievink:fix-r-a-on-libcore, r=Mark-Simulacrum
Remove unneeded `#[cfg(not(test))]` from libcore This fixes rust-analyzer inside these modules (currently it does not analyze them, assuming they're configured out).
2 parents 8383257 + 24dc182 commit c133aac

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

library/core/src/lib.rs

-11
Original file line numberDiff line numberDiff line change
@@ -220,52 +220,41 @@ pub mod ptr;
220220
/* Core language traits */
221221

222222
pub mod borrow;
223-
#[cfg(not(test))] // See #65860
224223
pub mod clone;
225-
#[cfg(not(test))] // See #65860
226224
pub mod cmp;
227225
pub mod convert;
228-
#[cfg(not(test))] // See #65860
229226
pub mod default;
230-
#[cfg(not(test))] // See #65860
231227
pub mod marker;
232228
pub mod ops;
233229

234230
/* Core types and methods on primitives */
235231

236232
pub mod any;
237-
#[cfg(not(test))] // See #65860
238233
pub mod array;
239234
pub mod ascii;
240235
pub mod cell;
241236
pub mod char;
242237
pub mod ffi;
243-
#[cfg(not(test))] // See #65860
244238
pub mod iter;
245239
#[unstable(feature = "once_cell", issue = "74465")]
246240
pub mod lazy;
247241
pub mod option;
248242
pub mod panic;
249243
pub mod panicking;
250-
#[cfg(not(test))] // See #65860
251244
pub mod pin;
252245
pub mod raw;
253246
pub mod result;
254247
pub mod sync;
255248

256-
#[cfg(not(test))] // See #65860
257249
pub mod fmt;
258-
#[cfg(not(test))] // See #65860
259250
pub mod hash;
260251
pub mod slice;
261-
#[cfg(not(test))] // See #65860
262252
pub mod str;
263253
pub mod time;
264254

265255
pub mod unicode;
266256

267257
/* Async */
268-
#[cfg(not(test))] // See #65860
269258
pub mod future;
270259
pub mod task;
271260

0 commit comments

Comments
 (0)