Skip to content

Commit 785cbf6

Browse files
committed
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
1 parent f6ce1e5 commit 785cbf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sysroot.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ fn build_liballoc(
177177
authors = ["The Rust Project Developers"]
178178
name = "alloc"
179179
version = "0.0.0"
180-
edition = "2018"
180+
edition = "2021"
181181
182182
[dependencies.compiler_builtins]
183183
version = "0.1.0"

0 commit comments

Comments
 (0)