Replace libstd, libcore, liballoc in line comments.
This commit is contained in:
@@ -38,18 +38,18 @@
|
||||
//! which do not trigger a panic can be assured that this function is never
|
||||
//! called. The `lang` attribute is called `eh_personality`.
|
||||
|
||||
// Since libcore defines many fundamental lang items, all tests live in a
|
||||
// Since core defines many fundamental lang items, all tests live in a
|
||||
// separate crate, libcoretest, to avoid bizarre issues.
|
||||
//
|
||||
// Here we explicitly #[cfg]-out this whole crate when testing. If we don't do
|
||||
// this, both the generated test artifact and the linked libtest (which
|
||||
// transitively includes libcore) will both define the same set of lang items,
|
||||
// transitively includes core) will both define the same set of lang items,
|
||||
// and this will cause the E0152 "found duplicate lang item" error. See
|
||||
// discussion in #50466 for details.
|
||||
//
|
||||
// This cfg won't affect doc tests.
|
||||
#![cfg(not(test))]
|
||||
// To run libcore tests without x.py without ending up with two copies of libcore, Miri needs to be
|
||||
// To run core tests without x.py without ending up with two copies of core, Miri needs to be
|
||||
// able to "empty" this crate. See <https://github.com/rust-lang/miri-test-libstd/issues/4>.
|
||||
// rustc itself never sets the feature, so this line has no affect there.
|
||||
#![cfg(any(not(feature = "miri-test-libstd"), test, doctest))]
|
||||
@@ -311,7 +311,7 @@ pub mod f64;
|
||||
#[macro_use]
|
||||
pub mod num;
|
||||
|
||||
/* The libcore prelude, not as all-encompassing as the libstd prelude */
|
||||
/* The core prelude, not as all-encompassing as the std prelude */
|
||||
|
||||
pub mod prelude;
|
||||
|
||||
@@ -378,12 +378,12 @@ mod const_closure;
|
||||
#[stable(feature = "core_primitive", since = "1.43.0")]
|
||||
pub mod primitive;
|
||||
|
||||
// Pull in the `core_arch` crate directly into libcore. The contents of
|
||||
// Pull in the `core_arch` crate directly into core. The contents of
|
||||
// `core_arch` are in a different repository: rust-lang/stdarch.
|
||||
//
|
||||
// `core_arch` depends on libcore, but the contents of this module are
|
||||
// `core_arch` depends on core, but the contents of this module are
|
||||
// set up in such a way that directly pulling it here works such that the
|
||||
// crate uses the this crate as its libcore.
|
||||
// crate uses the this crate as its core.
|
||||
#[path = "../../stdarch/crates/core_arch/src/mod.rs"]
|
||||
#[allow(
|
||||
missing_docs,
|
||||
@@ -402,12 +402,12 @@ mod core_arch;
|
||||
#[stable(feature = "simd_arch", since = "1.27.0")]
|
||||
pub mod arch;
|
||||
|
||||
// Pull in the `core_simd` crate directly into libcore. The contents of
|
||||
// Pull in the `core_simd` crate directly into core. The contents of
|
||||
// `core_simd` are in a different repository: rust-lang/portable-simd.
|
||||
//
|
||||
// `core_simd` depends on libcore, but the contents of this module are
|
||||
// `core_simd` depends on core, but the contents of this module are
|
||||
// set up in such a way that directly pulling it here works such that the
|
||||
// crate uses this crate as its libcore.
|
||||
// crate uses this crate as its core.
|
||||
#[path = "../../portable-simd/crates/core_simd/src/mod.rs"]
|
||||
#[allow(missing_debug_implementations, dead_code, unsafe_op_in_unsafe_fn, unused_unsafe)]
|
||||
#[allow(rustdoc::bare_urls)]
|
||||
|
||||
Reference in New Issue
Block a user