Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
d577883
metadata: Ignore sysroot when doing the manual native lib search in r…
petrochenkov Mar 9, 2025
b526668
Copy from userspace to MaybeUninit
Feb 28, 2025
8c7a94e
Implement read_buf and vectored read/write for SGX stdio
thaliaarchi Feb 7, 2025
87ca2db
Apply rustc-0023-Add-Trusty-OS-support-to-Rust-std.patch
randomPoison Feb 4, 2025
7f6ee12
Apply rustc-0054-Add-std-os-fd-support-for-Trusty.patch
randomPoison Feb 4, 2025
d633d8e
Format after patches have been applied
randomPoison Feb 4, 2025
22fea97
Disable unsupported tests
randomPoison Feb 4, 2025
5b94113
Update Trusty platform docs
randomPoison Feb 11, 2025
0b1a7ab
Remove custom TLS implementation for Trusty targets
randomPoison Feb 19, 2025
f5dd3d1
Update Trusty support to account for recent libstd reorganization
randomPoison Mar 10, 2025
2b3b0bd
Remove unused file
randomPoison Mar 10, 2025
c0957ef
naked functions: on windows emit `.endef` without the symbol name
folkertdev Mar 10, 2025
590b277
Add a test for new 2024 standard library behavior
ehuss Feb 11, 2025
0e071c2
Migrate core to Rust 2024
ehuss Feb 11, 2025
f505d4e
Migrate alloc to Rust 2024
ehuss Feb 11, 2025
b9454af
Migrate panic_abort to Rust 2024
ehuss Feb 11, 2025
985f66b
Migrate panic_unwind to Rust 2024
ehuss Feb 12, 2025
540ef90
Migrate unwind to Rust 2024
ehuss Feb 12, 2025
993359e
Migrate std to Rust 2024
ehuss Feb 12, 2025
f1a9513
Migrate test to Rust 2024
ehuss Feb 12, 2025
0b2489c
Migrate proc_macro to Rust 2024
ehuss Feb 12, 2025
80311c4
Migrate profiler_builtins to Rust 2024
ehuss Feb 12, 2025
32c61f7
Migrated the rustc-std-workspace crates to Rust 2024
ehuss Feb 12, 2025
ba06ce6
Migrate the sysroot crate to Rust 2024
ehuss Feb 12, 2025
b130747
Migrate windows-targets to Rust 2024
ehuss Feb 12, 2025
d3c55cd
Remove unnecessary parens
randomPoison Mar 11, 2025
53f488a
Simulate OOM for the `try_oom_error` test
cuviper Mar 11, 2025
c62aa0b
Fix `UserRef<[T]>::copy_to_enclave_vec`
thaliaarchi Feb 26, 2025
e1bb12d
fix: wasm-bare targets compiling x86 builtins
JayAndJef Feb 22, 2025
d3d7a6d
remove rls support from bootstrap
onur-ozkan Mar 10, 2025
ac819aa
remove rls specific parts from tidy and build-manifest
onur-ozkan Mar 10, 2025
56d0b16
remove rls source from the repository
onur-ozkan Mar 10, 2025
707d4b7
add change entry for rls removal
onur-ozkan Mar 12, 2025
0a47792
rustdoc-json: Extract Id handling into its own module
aDotInTheVoid Dec 5, 2024
a05d6ab
rustdoc-json: Clean up & Document id handling
aDotInTheVoid Dec 6, 2024
3ad5bdd
Rollup merge of #126856 - onur-ozkan:remove-rls, r=clubby789
matthiaskrgr Mar 13, 2025
65c1eef
Rollup merge of #133981 - aDotInTheVoid:document-docs-ids, r=fmease
matthiaskrgr Mar 13, 2025
2f467f0
Rollup merge of #136842 - randomPoison:trusty-libstd-v3, r=ChrisDenton
matthiaskrgr Mar 13, 2025
a490334
Rollup merge of #137355 - thaliaarchi:io-optional-methods/sgx, r=Chri…
matthiaskrgr Mar 13, 2025
780b30a
Rollup merge of #137457 - JayAndJef:issue-132802-fix, r=Kobzol
matthiaskrgr Mar 13, 2025
609def6
Rollup merge of #138162 - ehuss:library-2024, r=cuviper
matthiaskrgr Mar 13, 2025
21fd604
Rollup merge of #138273 - petrochenkov:nonatroot, r=bjorn3
matthiaskrgr Mar 13, 2025
67fd34a
Rollup merge of #138346 - folkertdev:naked-asm-windows-endef, r=Chris…
matthiaskrgr Mar 13, 2025
87d384f
Rollup merge of #138370 - cuviper:try_oom_error, r=jhpratt
matthiaskrgr Mar 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Migrate core to Rust 2024
  • Loading branch information
ehuss committed Mar 11, 2025
commit 0e071c2c6a585305c53b9d46cab81286a98eb94a
2 changes: 1 addition & 1 deletion library/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ autobenches = false
# If you update this, be sure to update it in a bunch of other places too!
# As of 2024, it was src/tools/opt-dist, the core-no-fp-fmt-parse test and
# the version of the prelude imported in core/lib.rs.
edition = "2021"
edition = "2024"

[lib]
test = false
Expand Down
2 changes: 1 addition & 1 deletion library/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ extern crate self as core;

#[prelude_import]
#[allow(unused)]
use prelude::rust_2021::*;
use prelude::rust_2024::*;

#[cfg(not(test))] // See #65860
#[macro_use]
Expand Down
10 changes: 5 additions & 5 deletions tests/mir-opt/gvn_clone.{impl#0}-clone.GVN.diff
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,16 @@
bb3: {
StorageDead(_9);
- _0 = AllCopy { a: move _2, b: move _5, c: move _8 };
- StorageDead(_10);
+ _0 = copy (*_1);
+ nop;
StorageDead(_8);
StorageDead(_5);
StorageDead(_2);
- StorageDead(_10);
- StorageDead(_7);
- StorageDead(_4);
+ nop;
+ nop;
StorageDead(_5);
- StorageDead(_4);
+ nop;
StorageDead(_2);
return;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@
bb3: {
StorageDead(_9);
_0 = MyThing::<T> { v: move _2, i: move _5, a: move _8 };
StorageDead(_8);
StorageDead(_5);
StorageDead(_2);
StorageDead(_10);
StorageDead(_8);
StorageDead(_7);
StorageDead(_5);
StorageDead(_4);
StorageDead(_2);
return;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@
bb3: {
StorageDead(_9);
_0 = MyThing::<T> { v: move _2, i: move _5, a: move _8 };
StorageDead(_8);
StorageDead(_5);
StorageDead(_2);
StorageDead(_10);
StorageDead(_8);
StorageDead(_7);
StorageDead(_5);
StorageDead(_4);
StorageDead(_2);
return;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/run-make/core-no-fp-fmt-parse/rmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use run_make_support::{rustc, source_root};

fn main() {
rustc()
.edition("2021")
.edition("2024")
.arg("-Dwarnings")
.crate_type("rlib")
.input(source_root().join("library/core/src/lib.rs"))
Expand Down
3 changes: 0 additions & 3 deletions tests/ui/macros/std-2024-macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@

fn main() {
assert_eq!(0, const { 0 });
//~^ ERROR: no rules expected keyword `const`
assert_eq!(const { 0 }, const { 0 });
//~^ ERROR: no rules expected keyword `const`
assert_eq!(const { 0 }, 0);
//~^ ERROR: no rules expected keyword `const`

let _: Vec<Vec<String>> = vec![const { vec![] }];
//~^ ERROR: no rules expected keyword `const`
Expand Down
33 changes: 3 additions & 30 deletions tests/ui/macros/std-2024-macros.stderr
Original file line number Diff line number Diff line change
@@ -1,45 +1,18 @@
error: no rules expected keyword `const`
--> $DIR/std-2024-macros.rs:5:19
|
LL | assert_eq!(0, const { 0 });
| ^^^^^ no rules expected this token in macro call
|
note: while trying to match meta-variable `$right:expr`
--> $SRC_DIR/core/src/macros/mod.rs:LL:COL

error: no rules expected keyword `const`
--> $DIR/std-2024-macros.rs:7:16
|
LL | assert_eq!(const { 0 }, const { 0 });
| ^^^^^ no rules expected this token in macro call
|
note: while trying to match meta-variable `$left:expr`
--> $SRC_DIR/core/src/macros/mod.rs:LL:COL

error: no rules expected keyword `const`
--> $DIR/std-2024-macros.rs:9:16
|
LL | assert_eq!(const { 0 }, 0);
| ^^^^^ no rules expected this token in macro call
|
note: while trying to match meta-variable `$left:expr`
--> $SRC_DIR/core/src/macros/mod.rs:LL:COL

error: no rules expected keyword `const`
--> $DIR/std-2024-macros.rs:12:36
--> $DIR/std-2024-macros.rs:9:36
|
LL | let _: Vec<Vec<String>> = vec![const { vec![] }];
| ^^^^^ no rules expected this token in macro call
|
= note: while trying to match end of macro

error: no rules expected keyword `const`
--> $DIR/std-2024-macros.rs:14:36
--> $DIR/std-2024-macros.rs:11:36
|
LL | let _: Vec<Vec<String>> = vec![const { vec![] }; 10];
| ^^^^^ no rules expected this token in macro call
|
= note: while trying to match end of macro

error: aborting due to 5 previous errors
error: aborting due to 2 previous errors