Skip to content

Commit

Permalink
Fix: The alloc crate uses the Rust 2021 edition now
Browse files Browse the repository at this point in the history
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
1 parent f6ce1e5 commit 785cbf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sysroot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 785cbf6

Please sign in to comment.