rust/library/core/src
Dylan DPC 20bf34f8c5
Rollup merge of #94461 - jhpratt:2024-edition, r=pnkfelix
Create (unstable) 2024 edition

[On Zulip](https://rust-lang.zulipchat.com/#narrow/stream/213817-t-lang/topic/Deprecating.20macro.20scoping.20shenanigans/near/272860652), there was a small aside regarding creating the 2024 edition now as opposed to later. There was a reasonable amount of support and no stated opposition.

This change creates the 2024 edition in the compiler and creates a prelude for the 2024 edition. There is no current difference between the 2021 and 2024 editions. Cargo and other tools will need to be updated separately, as it's not in the same repository. This change permits the vast majority of work towards the next edition to proceed _now_ instead of waiting until 2024.

For sanity purposes, I've merged the "hello" UI tests into a single file with multiple revisions. Otherwise we'd end up with a file per edition, despite them being essentially identical.

````@rustbot```` label +T-lang +S-waiting-on-review

Not sure on the relevant team, to be honest.
2022-04-15 20:50:43 +02:00
..
alloc fix Layout struct member naming style 2022-04-11 13:35:18 +08:00
array trivial cfg(bootstrap) changes 2022-04-05 23:18:40 +02:00
async_iter Add Stream alias for AsyncIterator 2022-03-15 20:59:13 -07:00
char Rollup merge of #95566 - eduardosm:std_char_consts_and_methods, r=Mark-Simulacrum 2022-04-10 21:03:34 +02:00
convert Rollup merge of #96006 - hkBst:patch-2, r=Dylan-DPC 2022-04-13 17:35:37 +02:00
ffi library: Use type aliases to make CStr(ing) in libcore/liballoc unstable 2022-04-14 21:53:11 +03:00
fmt Rollup merge of #95438 - m-ou-se:sync-unsafe-cell, r=joshtriplett 2022-04-04 20:41:32 +02:00
future Rename IntoFuture::Future to IntoFuture::IntoFuture 2022-03-10 20:51:52 +01:00
hash Make the stdlib largely conform to strict provenance. 2022-03-29 20:18:21 -04:00
iter Remove mention of HashMap<K, V> not offering iter_mut 2022-03-26 02:05:34 -04:00
macros reword panic vs result section to remove recoverable vs unrecoverable framing 2022-04-07 13:44:57 -07:00
mem Rollup merge of #95361 - scottmcm:valid-align, r=Mark-Simulacrum 2022-04-09 18:26:25 +02:00
num Fix spelling in docs for can_not_overflow 2022-04-12 13:29:56 -04:00
ops Rollup merge of #95663 - notriddle:notriddle/unsafe-fn-closure, r=compiler-errors 2022-04-05 22:58:59 +02:00
panic Revert "Mark Location::caller() as #[inline]" 2022-04-06 18:45:11 +02:00
prelude Create 2024 edition 2022-04-02 02:45:49 -04:00
ptr trivial cfg(bootstrap) changes 2022-04-05 23:18:40 +02:00
slice Rollup merge of #95743 - yaahc:binary-search-clarification, r=Mark-Simulacrum 2022-04-11 12:06:52 +02:00
str Clarify str::from_utf8_unchecked's invariants 2022-04-10 15:04:57 -05:00
sync Rollup merge of #95354 - dtolnay:rustc_const_stable, r=lcnr 2022-04-02 03:34:21 +02:00
task Rollup merge of #89869 - kpreid:from-doc, r=yaahc 2022-02-17 06:29:57 +01:00
unicode Regenerate tables for Unicode 14.0.0 2021-10-06 17:49:33 -07:00
any.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
ascii.rs Inline <EscapeDefault as Iterator>::next 2022-03-10 15:35:22 +01:00
bool.rs trivial cfg(bootstrap) changes 2022-04-05 23:18:40 +02:00
borrow.rs Make Borrow and BorrowMut impls const 2021-12-04 21:57:39 +09:00
cell.rs Add tracking issue for sync_unsafe_cell. 2022-03-29 19:54:00 +02:00
clone.rs trivial cfg(bootstrap) changes 2022-04-05 23:18:40 +02:00
cmp.rs Derive Eq for std::cmp::Ordering, instead of using manual impl. 2022-03-16 11:36:31 -05:00
default.rs Add documentation 2022-04-07 20:03:24 -04:00
hint.rs Add core::hint::must_use 2022-03-08 10:58:03 -08:00
internal_macros.rs Add a copy of cfg_if to core's internal_macros.rs 2022-03-01 16:24:10 -08:00
intrinsics.rs Auto merge of #95678 - pietroalbini:pa-1.62.0-bootstrap, r=Mark-Simulacrum 2022-04-07 07:34:04 +00:00
lazy.rs Rollup merge of #89869 - kpreid:from-doc, r=yaahc 2022-02-17 06:29:57 +01:00
lib.rs Rollup merge of #94457 - jhpratt:stabilize-derive_default_enum, r=davidtwco 2022-04-15 20:50:43 +02:00
marker.rs trivial cfg(bootstrap) changes 2022-04-05 23:18:40 +02:00
option.rs trivial cfg(bootstrap) changes 2022-04-05 23:18:40 +02:00
panic.rs resolve the conflict in compiler/rustc_session/src/parse.rs 2022-03-16 20:12:30 +08:00
panicking.rs trivial cfg(bootstrap) changes 2022-04-05 23:18:40 +02:00
pin.rs Fix formatting error in pin.rs docs 2022-04-10 12:41:31 -07:00
primitive.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
primitive_docs.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
result.rs trivial cfg(bootstrap) changes 2022-04-05 23:18:40 +02:00
time.rs Adjust feature names that disagree on const stabilization version 2022-03-31 12:34:48 -07:00
tuple.rs Implement tuples using recursion 2022-04-12 16:23:36 -03:00
unit.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00