Fix the auto-generated rustc-dep-of-std to depend on no_std.

This commit is contained in:
Dan Gohman
2021-11-03 13:55:52 -07:00
parent a24c460700
commit 951eae2802
+1 -1
View File
@@ -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]);