Skip to content

Commit 1e6d860

Browse files
committed
Commit : Move alloc
1 parent 6639672 commit 1e6d860

File tree

7 files changed

+63
-12
lines changed

7 files changed

+63
-12
lines changed

src/tools/run-make-support/src/lib.rs

+6
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ impl RustcInvocationBuilder {
4545
self
4646
}
4747

48+
pub fn arg_path(&mut self, path: &[&str]) -> &mut RustcInvocationBuilder {
49+
let path_buf = path.iter().collect::<PathBuf>();
50+
self.cmd.arg(path_buf.to_str().unwrap());
51+
self
52+
}
53+
4854
#[track_caller]
4955
pub fn run(&mut self) -> Output {
5056
let caller_location = std::panic::Location::caller();

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

-4
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// ignore-tidy-linelength
2+
3+
extern crate run_make_support;
4+
5+
use run_make_support::rustc;
6+
use std::path::PathBuf;
7+
8+
fn main() {
9+
rustc()
10+
.arg("--edition")
11+
.arg("2021")
12+
.arg("-Dwarnings")
13+
.arg("--crate-type")
14+
.arg("rlib")
15+
.arg_path(&["..", "..", "..", "library", "alloc", "src", "lib.rs"])
16+
.arg("--cfg")
17+
.arg("no_global_oom_handling")
18+
.run();
19+
}

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

-4
This file was deleted.

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

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// ignore-tidy-linelength
2+
3+
extern crate run_make_support;
4+
5+
use run_make_support::rustc;
6+
use std::path::PathBuf;
7+
8+
fn main() {
9+
rustc()
10+
.arg("--edition")
11+
.arg("2021")
12+
.arg("-Dwarnings")
13+
.arg("--crate-type")
14+
.arg("rlib")
15+
.arg_path(&["..", "..", "..", "library", "alloc", "src", "lib.rs"])
16+
.arg("--cfg")
17+
.arg("no_rc")
18+
.run();
19+
}

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

-4
This file was deleted.

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

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// ignore-tidy-linelength
2+
3+
extern crate run_make_support;
4+
5+
use run_make_support::rustc;
6+
use std::path::PathBuf;
7+
8+
fn main() {
9+
rustc()
10+
.arg("--edition")
11+
.arg("2021")
12+
.arg("-Dwarnings")
13+
.arg("--crate-type")
14+
.arg("rlib")
15+
.arg_path(&["..", "..", "..", "library", "alloc", "src", "lib.rs"])
16+
.arg("--cfg")
17+
.arg("no_sync")
18+
.run();
19+
}

0 commit comments

Comments
 (0)