Skip to content

Commit 979c9f4

Browse files
committed
Commit 6 : Add pathbuf
1 parent f7fbe47 commit 979c9f4

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

tests/run-make/alloc-no-oom-handling/rmake.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@
33
extern crate run_make_support;
44

55
use run_make_support::rustc;
6+
use std::path::PathBuf;
67

78
fn main() {
9+
let lib_path = PathBuf::from("../../../library/alloc/src/lib.rs");
810
rustc()
911
.arg("--edition")
1012
.arg("2021")
1113
.arg("-Dwarnings")
1214
.arg("--crate-type")
1315
.arg("rlib")
14-
.arg("../../../library/alloc/src/lib.rs")
16+
.arg(lib_path.to_str().unwrap())
1517
.arg("--cfg")
1618
.arg("no_global_oom_handling")
1719
.run();

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@
33
extern crate run_make_support;
44

55
use run_make_support::rustc;
6+
use std::path::PathBuf;
67

78
fn main() {
9+
let lib_path = PathBuf::from("../../../library/alloc/src/lib.rs");
810
rustc()
911
.arg("--edition")
1012
.arg("2021")
1113
.arg("-Dwarnings")
1214
.arg("--crate-type")
1315
.arg("rlib")
14-
.arg("../../../library/alloc/src/lib.rs")
16+
.arg(lib_path.to_str().unwrap())
1517
.arg("--cfg")
1618
.arg("no_rc")
1719
.run();

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@
33
extern crate run_make_support;
44

55
use run_make_support::rustc;
6+
use std::path::PathBuf;
67

78
fn main() {
9+
let lib_path = PathBuf::from("../../../library/alloc/src/lib.rs");
810
rustc()
911
.arg("--edition")
1012
.arg("2021")
1113
.arg("-Dwarnings")
1214
.arg("--crate-type")
1315
.arg("rlib")
14-
.arg("../../../library/alloc/src/lib.rs")
16+
.arg(lib_path.to_str().unwrap())
1517
.arg("--cfg")
1618
.arg("no_sync")
1719
.run();

0 commit comments

Comments
 (0)