Skip to content

Commit

Permalink
Auto merge of rust-lang#76409 - jonas-schievink:fix-r-a-on-libcore, r…
Browse files Browse the repository at this point in the history
…=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).
  • Loading branch information
bors committed Sep 7, 2020
2 parents 8383257 + 24dc182 commit c133aac
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions library/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,52 +220,41 @@ pub mod ptr;
/* Core language traits */

pub mod borrow;
#[cfg(not(test))] // See #65860
pub mod clone;
#[cfg(not(test))] // See #65860
pub mod cmp;
pub mod convert;
#[cfg(not(test))] // See #65860
pub mod default;
#[cfg(not(test))] // See #65860
pub mod marker;
pub mod ops;

/* Core types and methods on primitives */

pub mod any;
#[cfg(not(test))] // See #65860
pub mod array;
pub mod ascii;
pub mod cell;
pub mod char;
pub mod ffi;
#[cfg(not(test))] // See #65860
pub mod iter;
#[unstable(feature = "once_cell", issue = "74465")]
pub mod lazy;
pub mod option;
pub mod panic;
pub mod panicking;
#[cfg(not(test))] // See #65860
pub mod pin;
pub mod raw;
pub mod result;
pub mod sync;

#[cfg(not(test))] // See #65860
pub mod fmt;
#[cfg(not(test))] // See #65860
pub mod hash;
pub mod slice;
#[cfg(not(test))] // See #65860
pub mod str;
pub mod time;

pub mod unicode;

/* Async */
#[cfg(not(test))] // See #65860
pub mod future;
pub mod task;

Expand Down

0 comments on commit c133aac

Please sign in to comment.