rust-osdev / cargo-xbuild

Automatically cross-compiles the sysroot crates core, compiler_builtins, and alloc.
Apache License 2.0
256 stars 25 forks source link

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

Closed phil-opp closed 2 years ago

phil-opp commented 2 years ago

The alloc library was switched to the 2021 edition in https://github.com/rust-lang/rust/pull/92068. However, it did not use any features of the new edition until PR https://github.com/rust-lang/rust/pull/98103, which relies on the newer closure capture mechanism. This commit fixes the build on the latest nightlies, which include that PR.

Fixes #104

phil-opp commented 2 years ago

Published as v0.6.6