From 951eae2802bde231916e57b2db06c02cea27509f Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 3 Nov 2021 13:55:52 -0700 Subject: [PATCH] Fix the auto-generated rustc-dep-of-std to depend on `no_std`. --- gen/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen/src/main.rs b/gen/src/main.rs index ed10336..5642573 100644 --- a/gen/src/main.rs +++ b/gen/src/main.rs @@ -242,7 +242,7 @@ fn main() { writeln!(cargo_toml, "default = [\"std\", {}]", DEFAULT_FEATURES).unwrap(); writeln!(cargo_toml, "std = []").unwrap(); writeln!(cargo_toml, "no_std = []").unwrap(); - writeln!(cargo_toml, "rustc-dep-of-std = [\"rustc-std-workspace-core\"]").unwrap(); + writeln!(cargo_toml, "rustc-dep-of-std = [\"rustc-std-workspace-core\", \"no_std\"]").unwrap(); // Reset the `linux` directory back to the original branch. git_checkout(LINUX_VERSIONS[0]);