Skip to content

Commit

Permalink
rewrite alloc tests & remove import
Browse files Browse the repository at this point in the history
  • Loading branch information
Oneirical committed May 11, 2024
1 parent 3349155 commit 50539da
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 22 deletions.
7 changes: 0 additions & 7 deletions tests/run-make/alloc-no-oom-handling/Makefile

This file was deleted.

14 changes: 14 additions & 0 deletions tests/run-make/alloc-no-oom-handling/rmake.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// This test checks that alloc can still compile correctly when the unstable no_global_oom_handling feature is turned on.

Check failure on line 1 in tests/run-make/alloc-no-oom-handling/rmake.rs

View workflow job for this annotation

GitHub Actions / PR - mingw-check-tidy

line longer than 100 chars
// 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 changes: 0 additions & 7 deletions tests/run-make/alloc-no-rc/Makefile

This file was deleted.

14 changes: 14 additions & 0 deletions tests/run-make/alloc-no-rc/rmake.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// This test checks that alloc can still compile correctly when the unstable no_rc feature is turned on.

Check failure on line 1 in tests/run-make/alloc-no-rc/rmake.rs

View workflow job for this annotation

GitHub Actions / PR - mingw-check-tidy

line longer than 100 chars
// 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 changes: 0 additions & 7 deletions tests/run-make/alloc-no-sync/Makefile

This file was deleted.

14 changes: 14 additions & 0 deletions tests/run-make/alloc-no-sync/rmake.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// This test checks that alloc can still compile correctly when the unstable no_sync feature is turned on.

Check failure on line 1 in tests/run-make/alloc-no-sync/rmake.rs

View workflow job for this annotation

GitHub Actions / PR - mingw-check-tidy

line longer than 100 chars
// 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();
}
1 change: 0 additions & 1 deletion tests/run-make/core-no-fp-fmt-parse/rmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// support for formatting and parsing floating-point numbers.

use run_make_support::rustc;
use std::path::PathBuf;

fn main() {
rustc()
Expand Down

0 comments on commit 50539da

Please sign in to comment.