Skip to content

Commit 50539da

Browse files
committed
rewrite alloc tests & remove import
1 parent 3349155 commit 50539da

File tree

7 files changed

+42
-22
lines changed

7 files changed

+42
-22
lines changed

tests/run-make/alloc-no-oom-handling/Makefile

-7
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// This test checks that alloc can still compile correctly when the unstable no_global_oom_handling feature is turned on.
2+
// See https://github.com/rust-lang/rust/pull/84266
3+
4+
use run_make_support::rustc;
5+
6+
fn main() {
7+
rustc()
8+
.edition("2021")
9+
.arg("-Dwarnings")
10+
.crate_type("rlib")
11+
.input("../../../library/alloc/src/lib.rs")
12+
.cfg("no_global_oom_handling")
13+
.run();
14+
}

tests/run-make/alloc-no-rc/Makefile

-7
This file was deleted.

tests/run-make/alloc-no-rc/rmake.rs

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// This test checks that alloc can still compile correctly when the unstable no_rc feature is turned on.
2+
// See https://github.com/rust-lang/rust/pull/84266
3+
4+
use run_make_support::rustc;
5+
6+
fn main() {
7+
rustc()
8+
.edition("2021")
9+
.arg("-Dwarnings")
10+
.crate_type("rlib")
11+
.input("../../../library/alloc/src/lib.rs")
12+
.cfg("no_rc")
13+
.run();
14+
}

tests/run-make/alloc-no-sync/Makefile

-7
This file was deleted.

tests/run-make/alloc-no-sync/rmake.rs

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// This test checks that alloc can still compile correctly when the unstable no_sync feature is turned on.
2+
// See https://github.com/rust-lang/rust/pull/84266
3+
4+
use run_make_support::rustc;
5+
6+
fn main() {
7+
rustc()
8+
.edition("2021")
9+
.arg("-Dwarnings")
10+
.crate_type("rlib")
11+
.input("../../../library/alloc/src/lib.rs")
12+
.cfg("no_sync")
13+
.run();
14+
}

tests/run-make/core-no-fp-fmt-parse/rmake.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// support for formatting and parsing floating-point numbers.
33

44
use run_make_support::rustc;
5-
use std::path::PathBuf;
65

76
fn main() {
87
rustc()

0 commit comments

Comments
 (0)