rewrite alloc tests & remove import
This commit is contained in:
parent
3349155ac0
commit
50539da261
@ -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
|
14
tests/run-make/alloc-no-oom-handling/rmake.rs
Normal file
14
tests/run-make/alloc-no-oom-handling/rmake.rs
Normal file
@ -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();
|
||||
}
|
@ -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
tests/run-make/alloc-no-rc/rmake.rs
Normal file
14
tests/run-make/alloc-no-rc/rmake.rs
Normal 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();
|
||||
}
|
@ -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
tests/run-make/alloc-no-sync/rmake.rs
Normal file
14
tests/run-make/alloc-no-sync/rmake.rs
Normal 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()
|
||||
|
Loading…
Reference in New Issue
Block a user