Skip to content

Commit f31bd74

Browse files
committed
Update run-make tests to no longer use aux_build
1 parent b591eb0 commit f31bd74

File tree

2 files changed

+4
-4
lines changed
  • tests/run-make

2 files changed

+4
-4
lines changed

Diff for: tests/run-make/CURRENT_RUSTC_VERSION/rmake.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
// Check that the `CURRENT_RUSTC_VERSION` placeholder is correctly replaced by the current
44
// `rustc` version and the `since` property in feature stability gating is properly respected.
55

6-
use run_make_support::{aux_build, rfs, rustc, source_root};
6+
use run_make_support::{rfs, rustc, source_root};
77

88
fn main() {
9-
aux_build().input("stable.rs").emit("metadata").run();
9+
rustc().crate_type("lib").input("stable.rs").emit("metadata").run();
1010

1111
let output =
1212
rustc().input("main.rs").emit("metadata").extern_("stable", "libstable.rmeta").run();

Diff for: tests/run-make/issue-107495-archive-permissions/rmake.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ use std::path::Path;
44

55
#[cfg(unix)]
66
use run_make_support::libc;
7-
use run_make_support::{aux_build, rfs};
7+
use run_make_support::{rfs, rustc};
88

99
fn main() {
1010
#[cfg(unix)]
1111
unsafe {
1212
libc::umask(0o002);
1313
}
1414

15-
aux_build().arg("foo.rs").run();
15+
rustc().crate_type("lib").arg("foo.rs").run();
1616
verify(Path::new("libfoo.rlib"));
1717
}
1818

0 commit comments

Comments
 (0)