rewrite alloc tests & remove import

This commit is contained in:
Oneirical
2024-05-11 15:35:49 -04:00
parent 3349155ac0
commit 50539da261
7 changed files with 42 additions and 22 deletions
@@ -1,7 +0,0 @@
# This test checks that alloc can still compile correctly when the unstable no_global_oom_handling feature is turned on.
# See https://github.com/rust-lang/rust/pull/84266
include ../tools.mk
all:
$(RUSTC) --edition=2021 -Dwarnings --crate-type=rlib ../../../library/alloc/src/lib.rs --cfg no_global_oom_handling
@@ -0,0 +1,14 @@
// This test checks that alloc can still compile correctly when the unstable no_global_oom_handling feature is turned on.
// See https://github.com/rust-lang/rust/pull/84266
use run_make_support::rustc;
fn main() {
rustc()
.edition("2021")
.arg("-Dwarnings")
.crate_type("rlib")
.input("../../../library/alloc/src/lib.rs")
.cfg("no_global_oom_handling")
.run();
}
-7
View File
@@ -1,7 +0,0 @@
# This test checks that alloc can still compile correctly when the unstable no_rc feature is turned on.
# See https://github.com/rust-lang/rust/pull/89891
include ../tools.mk
all:
$(RUSTC) --edition=2021 -Dwarnings --crate-type=rlib ../../../library/alloc/src/lib.rs --cfg no_rc
+14
View File
@@ -0,0 +1,14 @@
// This test checks that alloc can still compile correctly when the unstable no_rc feature is turned on.
// See https://github.com/rust-lang/rust/pull/84266
use run_make_support::rustc;
fn main() {
rustc()
.edition("2021")
.arg("-Dwarnings")
.crate_type("rlib")
.input("../../../library/alloc/src/lib.rs")
.cfg("no_rc")
.run();
}
-7
View File
@@ -1,7 +0,0 @@
# This test checks that alloc can still compile correctly when the unstable no_sync feature is turned on.
# See https://github.com/rust-lang/rust/pull/89891
include ../tools.mk
all:
$(RUSTC) --edition=2021 -Dwarnings --crate-type=rlib ../../../library/alloc/src/lib.rs --cfg no_sync
+14
View File
@@ -0,0 +1,14 @@
// This test checks that alloc can still compile correctly when the unstable no_sync feature is turned on.
// See https://github.com/rust-lang/rust/pull/84266
use run_make_support::rustc;
fn main() {
rustc()
.edition("2021")
.arg("-Dwarnings")
.crate_type("rlib")
.input("../../../library/alloc/src/lib.rs")
.cfg("no_sync")
.run();
}
@@ -2,7 +2,6 @@
// support for formatting and parsing floating-point numbers.
use run_make_support::rustc;
use std::path::PathBuf;
fn main() {
rustc()