Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: The alloc crate uses the Rust 2021 edition now #105

Merged
merged 2 commits into from
Jun 21, 2022
Merged
Changes from 1 commit
Commits
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
Next Next commit
Fix: The alloc crate uses the Rust 2021 edition now
The alloc library was switched to the 2021 edition in <rust-lang/rust#92068>. However, it did not use any features of the new edition until PR <rust-lang/rust#98103>, which relies on the newer closure capture mechanism. This commit fixes the build on the latest nightlies, which include that PR.

Fixes #104
  • Loading branch information
phil-opp committed Jun 21, 2022
commit 785cbf62bb4a4245183365b1df29a0dd41602a24
2 changes: 1 addition & 1 deletion src/sysroot.rs
Original file line number Diff line number Diff line change
@@ -177,7 +177,7 @@ fn build_liballoc(
authors = ["The Rust Project Developers"]
name = "alloc"
version = "0.0.0"
edition = "2018"
edition = "2021"

[dependencies.compiler_builtins]
version = "0.1.0"