rust/library/core/src
Matthias Krüger c21a76fde0
Rollup merge of #136886 - ehuss:remove-prelude-common, r=jhpratt
Remove the common prelude module

This fixes the issues described in https://github.com/rust-lang/rust/issues/136102. Primarily, this resolves some issues with how the documentation for the prelude is generated:

- It avoids showing "unstable" for macros in the prelude that are actually stable.
- Avoids duplication of some pages due to the previous lack of `doc(no_inline)`.
- Makes the different edition preludes consistent, and sets a pattern that can be used by future editions.

We may need to rearrange these modules in the future if we decide to remove anything from the prelude again. If we do, I think we should look into a different solution that avoids the documentation problems.

Closes https://github.com/rust-lang/rust/issues/136102
2025-02-14 16:23:30 +01:00
..
alloc library: doc: core::alloc::Allocator: trivial typo fix 2025-02-07 09:14:17 +03:00
array Rollup merge of #135489 - RalfJung:TryFromSliceError, r=tgross35 2025-01-24 08:08:06 +01:00
ascii Add more precondition check tests 2024-10-09 19:34:27 -04:00
async_iter Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
cell OnceCell & OnceLock docs: Using (un)initialized consistently 2025-02-03 17:48:39 +05:30
char Update encode_utf16 to mention it is native endian 2025-01-31 11:44:11 +01:00
clone CloneToUninit: use a private specialization trait 2024-07-29 20:44:43 +03:00
cmp Use generic NonZero everywhere in core. 2024-02-22 15:17:33 +01:00
convert rustdoc-search: let From and Into be unboxed 2024-12-13 11:05:30 -07:00
ffi Mark extern blocks as unsafe 2025-02-09 17:11:13 +00:00
fmt Auto merge of #136409 - TDecking:mul_hi, r=Mark-Simulacrum 2025-02-06 03:43:58 +00:00
future update cfg(bootstrap) 2025-01-08 21:26:39 +01:00
hash fmt 2025-01-08 22:11:33 +01:00
intrinsics Mark extern blocks as unsafe 2025-02-09 17:11:13 +00:00
io Add inherent versions of MaybeUninit methods for slices 2025-01-11 23:57:00 -05:00
iter Rename field in OnceWith from gen to make 2025-02-09 17:10:50 +00:00
macros Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00
marker Implement phantom variance markers 2025-01-26 04:57:11 +00:00
mem Remove minor future footgun in impl Debug for MaybeUninit 2025-01-29 20:23:59 -05:00
net Auto merge of #134286 - Urgau:unreach_pub-std, r=ibraheemdev 2025-01-20 23:34:04 +00:00
num stabilize NonZero::count_ones 2025-02-06 22:40:25 +01:00
ops add IntoBounds trait 2025-02-12 17:38:44 -07:00
panic replace placeholder version 2024-11-27 12:10:21 +00:00
prelude Remove the common prelude module 2025-02-11 13:04:27 -08:00
ptr Change swap_nonoverlapping from lang to library UB 2025-02-12 12:20:14 -05:00
range Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
slice Auto merge of #136735 - scottmcm:transmute-nonnull, r=oli-obk 2025-02-14 09:06:17 +00:00
str specify a prim@slice in docs 2025-02-04 02:51:44 +01:00
sync atomic: extend compare_and_swap migration docs 2025-01-30 14:40:08 +01:00
task update version placeholders 2025-01-08 20:02:18 +01:00
unicode core: add #![warn(unreachable_pub)] 2025-01-20 18:35:32 +01:00
any.rs include note on variance and example 2025-02-11 09:20:59 +01:00
arch.rs core: #[allow(unreachable_pub)] on unreachable pub use 2025-01-20 18:35:32 +01:00
ascii.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
asserting.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
bool.rs Rollup merge of #133964 - joboet:select_unpredictable, r=tgross35 2025-01-04 09:54:36 +01:00
borrow.rs Suggest borrowing on fn argument that is impl AsRef 2024-05-09 23:25:31 +00:00
bstr.rs Add doc aliases for BStr and BString 2025-01-22 09:19:24 +02:00
cell.rs Rustfmt 2025-02-08 22:12:13 +00:00
clone.rs Implement CloneToUninit for ByteStr 2025-01-22 17:53:39 +02:00
cmp.rs implement all min/max fns in terms of </is_lt 2025-01-31 05:45:12 +01:00
contracts.rs Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00
default.rs update cfgs 2024-09-05 17:24:01 +01:00
error.md Mention core's PanicInfo in error.md. 2024-06-11 15:47:00 +02:00
error.rs Stabilize get_many_mut as get_disjoint_mut 2025-01-28 17:59:31 +03:00
escape.rs core: add #![warn(unreachable_pub)] 2025-01-20 18:35:32 +01:00
hint.rs Change the issue number for likely_unlikely and cold_path 2025-02-11 16:10:35 +00:00
internal_macros.rs Fix doc nits 2024-07-26 13:26:33 +01:00
lib.miri.rs add 'x.py miri', and make it work for 'library/{core,alloc,std}' 2024-04-03 20:27:20 +02:00
lib.rs Rollup merge of #134090 - veluca93:stable-tf11, r=oli-obk 2025-02-12 20:09:56 -05:00
marker.rs Implement and use BikeshedGuaranteedNoDrop for union/unsafe field validity 2025-02-13 03:45:04 +00:00
option.rs Less unwrap() in documentation 2024-12-21 01:26:47 +00:00
panic.rs update cfgs 2024-11-27 15:14:54 +00:00
panicking.rs Mark extern blocks as unsafe 2025-02-09 17:11:13 +00:00
pat.rs Rename core_pattern_type and core_pattern_types lib feature gates to pattern_type_macro 2024-12-04 16:16:24 +00:00
pin.rs docs: fix typo in std::pin overview 2025-01-24 23:26:02 -07:00
primitive.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
primitive_docs.rs Docs for f16 and f128: correct a typo and add details 2025-02-02 19:48:57 -08:00
random.rs random: add tracking issue, address other comments 2024-09-23 10:36:16 +02:00
range.rs add IntoBounds trait 2025-02-12 17:38:44 -07:00
result.rs Less unwrap() in documentation 2024-12-21 01:26:47 +00:00
time.rs Update a bunch of library types for MCP807 2025-01-09 23:47:11 -08:00
tuple.rs update cfgs 2024-09-05 17:24:01 +01:00
ub_checks.rs update cfgs 2024-11-27 15:14:54 +00:00
unit.rs Import the 2021 prelude in the core crate 2024-03-25 13:12:06 -07:00
unsafe_binder.rs Add unwrap_unsafe_binder and wrap_unsafe_binder macro operators 2024-12-12 16:29:40 +00:00