mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
rewrite alloc tests & remove import
This commit is contained in:
@@ -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();
|
||||
}
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user