3838//! which do not trigger a panic can be assured that this function is never
3939//! called. The `lang` attribute is called `eh_personality`.
4040
41- // Since libcore defines many fundamental lang items, all tests live in a
42- // separate crate, libcoretest, to avoid bizarre issues.
41+ // Since core defines many fundamental lang items, all tests live in a
42+ // separate crate, libcoretest (library/core/tests) , to avoid bizarre issues.
4343//
4444// Here we explicitly #[cfg]-out this whole crate when testing. If we don't do
4545// this, both the generated test artifact and the linked libtest (which
46- // transitively includes libcore ) will both define the same set of lang items,
46+ // transitively includes core ) will both define the same set of lang items,
4747// and this will cause the E0152 "found duplicate lang item" error. See
4848// discussion in #50466 for details.
4949//
5050// This cfg won't affect doc tests.
5151#![ cfg( not( test) ) ]
52- // To run libcore tests without x.py without ending up with two copies of libcore , Miri needs to be
52+ // To run core tests without x.py without ending up with two copies of core , Miri needs to be
5353// able to "empty" this crate. See <https://github.com/rust-lang/miri-test-libstd/issues/4>.
5454// rustc itself never sets the feature, so this line has no affect there.
5555#![ cfg( any( not( feature = "miri-test-libstd" ) , test, doctest) ) ]
@@ -311,7 +311,7 @@ pub mod f64;
311311#[ macro_use]
312312pub mod num;
313313
314- /* The libcore prelude, not as all-encompassing as the libstd prelude */
314+ /* The core prelude, not as all-encompassing as the std prelude */
315315
316316pub mod prelude;
317317
@@ -378,12 +378,12 @@ mod const_closure;
378378#[ stable( feature = "core_primitive" , since = "1.43.0" ) ]
379379pub mod primitive;
380380
381- // Pull in the `core_arch` crate directly into libcore . The contents of
381+ // Pull in the `core_arch` crate directly into core . The contents of
382382// `core_arch` are in a different repository: rust-lang/stdarch.
383383//
384- // `core_arch` depends on libcore , but the contents of this module are
384+ // `core_arch` depends on core , but the contents of this module are
385385// set up in such a way that directly pulling it here works such that the
386- // crate uses the this crate as its libcore .
386+ // crate uses the this crate as its core .
387387#[ path = "../../stdarch/crates/core_arch/src/mod.rs" ]
388388#[ allow(
389389 missing_docs,
@@ -402,12 +402,12 @@ mod core_arch;
402402#[ stable( feature = "simd_arch" , since = "1.27.0" ) ]
403403pub mod arch;
404404
405- // Pull in the `core_simd` crate directly into libcore . The contents of
405+ // Pull in the `core_simd` crate directly into core . The contents of
406406// `core_simd` are in a different repository: rust-lang/portable-simd.
407407//
408- // `core_simd` depends on libcore , but the contents of this module are
408+ // `core_simd` depends on core , but the contents of this module are
409409// set up in such a way that directly pulling it here works such that the
410- // crate uses this crate as its libcore .
410+ // crate uses this crate as its core .
411411#[ path = "../../portable-simd/crates/core_simd/src/mod.rs" ]
412412#[ allow( missing_debug_implementations, dead_code, unsafe_op_in_unsafe_fn, unused_unsafe) ]
413413#[ allow( rustdoc:: bare_urls) ]
0 commit comments