Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit dd763f3

Browse files
authoredFeb 22, 2025
Rollup merge of rust-lang#137333 - compiler-errors:edition-2024-fresh, r=Nadrieril
Use `edition = "2024"` in the compiler (redux) Most of this is binding mode changes, which I fixed by running `x.py fix`. Also adds some miscellaneous `unsafe` blocks for new unsafe standard library functions (the setenv ones), and a missing `unsafe extern` block in some enzyme codegen code, and fixes some precise capturing lifetime changes (but only when they led to errors). cc `@ehuss` `@traviscross`
2 parents 356d9b7 + 3d5438a commit dd763f3

File tree

149 files changed

+259
-280
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+259
-280
lines changed
 

‎compiler/rustc/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "rustc-main"
33
version = "0.0.0"
4-
edition = "2021"
4+
edition = "2024"
55

66
[dependencies]
77
# tidy-alphabetical-start

‎compiler/rustc/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ fn main() {
6565
// linking, so we need to explicitly depend on the function.
6666
#[cfg(target_os = "macos")]
6767
{
68-
extern "C" {
68+
unsafe extern "C" {
6969
fn _rjem_je_zone_register();
7070
}
7171

0 commit comments

Comments
 (0)
Please sign in to comment.