1
Fork 0

Auto merge of #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).
This commit is contained in:
bors 2020-09-07 02:20:44 +00:00
commit c133aac1e9

View file

@ -220,52 +220,41 @@ pub mod ptr;
/* Core language traits */ /* Core language traits */
pub mod borrow; pub mod borrow;
#[cfg(not(test))] // See #65860
pub mod clone; pub mod clone;
#[cfg(not(test))] // See #65860
pub mod cmp; pub mod cmp;
pub mod convert; pub mod convert;
#[cfg(not(test))] // See #65860
pub mod default; pub mod default;
#[cfg(not(test))] // See #65860
pub mod marker; pub mod marker;
pub mod ops; pub mod ops;
/* Core types and methods on primitives */ /* Core types and methods on primitives */
pub mod any; pub mod any;
#[cfg(not(test))] // See #65860
pub mod array; pub mod array;
pub mod ascii; pub mod ascii;
pub mod cell; pub mod cell;
pub mod char; pub mod char;
pub mod ffi; pub mod ffi;
#[cfg(not(test))] // See #65860
pub mod iter; pub mod iter;
#[unstable(feature = "once_cell", issue = "74465")] #[unstable(feature = "once_cell", issue = "74465")]
pub mod lazy; pub mod lazy;
pub mod option; pub mod option;
pub mod panic; pub mod panic;
pub mod panicking; pub mod panicking;
#[cfg(not(test))] // See #65860
pub mod pin; pub mod pin;
pub mod raw; pub mod raw;
pub mod result; pub mod result;
pub mod sync; pub mod sync;
#[cfg(not(test))] // See #65860
pub mod fmt; pub mod fmt;
#[cfg(not(test))] // See #65860
pub mod hash; pub mod hash;
pub mod slice; pub mod slice;
#[cfg(not(test))] // See #65860
pub mod str; pub mod str;
pub mod time; pub mod time;
pub mod unicode; pub mod unicode;
/* Async */ /* Async */
#[cfg(not(test))] // See #65860
pub mod future; pub mod future;
pub mod task; pub mod task;