Skip to content

Commit d69cc1c

Browse files
committed
tests: update for rfs rename
1 parent 1f1bf4c commit d69cc1c

File tree

80 files changed

+80
-82
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+80
-82
lines changed

tests/run-make/CURRENT_RUSTC_VERSION/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
use std::path::PathBuf;
77

8-
use run_make_support::{aux_build, fs as rfs, rustc, source_root};
8+
use run_make_support::{aux_build, rfs, rustc, source_root};
99

1010
fn main() {
1111
aux_build().input("stable.rs").emit("metadata").run();

tests/run-make/c-link-to-rust-dylib/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
//@ ignore-cross-compile
55

6-
use run_make_support::{cc, cwd, dynamic_lib_extension, fs as rfs, is_msvc, run, run_fail, rustc};
6+
use run_make_support::{cc, cwd, dynamic_lib_extension, is_msvc, rfs, run, run_fail, rustc};
77

88
fn main() {
99
rustc().input("foo.rs").run();

tests/run-make/c-link-to-rust-staticlib/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
//@ ignore-cross-compile
55

6-
use run_make_support::fs::remove_file;
6+
use run_make_support::rfs::remove_file;
77
use run_make_support::{cc, extra_c_flags, run, rustc, static_lib_name};
88
use std::fs;
99

tests/run-make/cdylib/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
//@ ignore-cross-compile
1212

13-
use run_make_support::{cc, cwd, dynamic_lib_name, fs as rfs, is_msvc, run, rustc};
13+
use run_make_support::{cc, cwd, dynamic_lib_name, is_msvc, rfs, run, rustc};
1414

1515
fn main() {
1616
rustc().input("bar.rs").run();

tests/run-make/comment-section/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
use std::path::PathBuf;
1111

12-
use run_make_support::fs as rfs;
1312
use run_make_support::llvm_readobj;
13+
use run_make_support::rfs;
1414
use run_make_support::rustc;
1515
use run_make_support::{cwd, env_var, run_in_tmpdir};
1616

tests/run-make/compiler-builtins/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414

1515
#![deny(warnings)]
1616

17-
use run_make_support::fs::{read, read_dir};
1817
use run_make_support::object::read::archive::ArchiveFile;
1918
use run_make_support::object::read::Object;
2019
use run_make_support::object::ObjectSection;
2120
use run_make_support::object::ObjectSymbol;
2221
use run_make_support::object::RelocationTarget;
22+
use run_make_support::rfs::{read, read_dir};
2323
use run_make_support::{cmd, env_var, object};
2424
use std::collections::HashSet;
2525
use std::path::PathBuf;

tests/run-make/compiler-lookup-paths/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//@ ignore-wasm64
1010
// Reason: a C compiler is required for build_native_static_lib
1111

12-
use run_make_support::{build_native_static_lib, fs as rfs, rustc, static_lib_name};
12+
use run_make_support::{build_native_static_lib, rfs, rustc, static_lib_name};
1313

1414
fn main() {
1515
build_native_static_lib("native");

tests/run-make/const-prop-lint/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Tests that const prop lints interrupting codegen don't leave `.o` files around.
22

3-
use run_make_support::{cwd, fs as rfs, rustc};
3+
use run_make_support::{cwd, rfs, rustc};
44

55
fn main() {
66
rustc().input("input.rs").run_fail().assert_exit_code(1);

tests/run-make/crate-name-priority/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// and the compiler flags, and checks that the flag is favoured each time.
55
// See https://github.com/rust-lang/rust/pull/15518
66

7-
use run_make_support::{bin_name, fs as rfs, rustc};
7+
use run_make_support::{bin_name, rfs, rustc};
88

99
fn main() {
1010
rustc().input("foo.rs").run();

tests/run-make/doctests-keep-binaries/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Check that valid binaries are persisted by running them, regardless of whether the
22
// --run or --no-run option is used.
33

4-
use run_make_support::fs::{create_dir, remove_dir_all};
4+
use run_make_support::rfs::{create_dir, remove_dir_all};
55
use run_make_support::{run, rustc, rustdoc};
66
use std::path::Path;
77

tests/run-make/doctests-runtool/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Tests behavior of rustdoc `--runtool`.
22

3-
use run_make_support::fs::{create_dir, remove_dir_all};
3+
use run_make_support::rfs::{create_dir, remove_dir_all};
44
use run_make_support::{rustc, rustdoc};
55
use std::path::PathBuf;
66

tests/run-make/dump-mono-stats/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// a specific expected string.
55
// See https://github.com/rust-lang/rust/pull/105481
66

7-
use run_make_support::{cwd, fs as rfs, rustc};
7+
use run_make_support::{cwd, rfs, rustc};
88

99
fn main() {
1010
rustc()

tests/run-make/dylib-chain/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//@ ignore-cross-compile
99
// Reason: the compiled binary is executed
1010

11-
use run_make_support::{dynamic_lib_name, fs as rfs, run, run_fail, rustc};
11+
use run_make_support::{dynamic_lib_name, rfs, run, run_fail, rustc};
1212

1313
fn main() {
1414
rustc().input("m1.rs").arg("-Cprefer-dynamic").run();

tests/run-make/emit-named-files/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::path::Path;
22

3-
use run_make_support::{fs as rfs, rustc};
3+
use run_make_support::{rfs, rustc};
44

55
fn emit_and_check(out_dir: &Path, out_file: &str, format: &str) {
66
let out_file = out_dir.join(out_file);

tests/run-make/emit-path-unhashed/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// adding a new output type (in this test, metadata).
77
// See https://github.com/rust-lang/rust/issues/86044
88

9-
use run_make_support::{diff, fs as rfs, rustc};
9+
use run_make_support::{diff, rfs, rustc};
1010

1111
fn main() {
1212
rfs::create_dir("emit");

tests/run-make/extern-flag-pathless/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//@ ignore-cross-compile
99
// Reason: the compiled binary is executed
1010

11-
use run_make_support::{dynamic_lib_name, fs as rfs, run, run_fail, rust_lib_name, rustc};
11+
use run_make_support::{dynamic_lib_name, rfs, run, run_fail, rust_lib_name, rustc};
1212

1313
fn main() {
1414
rustc().input("bar.rs").crate_type("rlib").crate_type("dylib").arg("-Cprefer-dynamic").run();

tests/run-make/extra-filename-with-temp-outputs/rmake.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
// are named as expected.
77
// See https://github.com/rust-lang/rust/pull/15686
88

9-
use run_make_support::{
10-
bin_name, cwd, fs as rfs, has_prefix, has_suffix, rustc, shallow_find_files,
11-
};
9+
use run_make_support::{bin_name, cwd, has_prefix, has_suffix, rfs, rustc, shallow_find_files};
1210

1311
fn main() {
1412
rustc().extra_filename("bar").input("foo.rs").arg("-Csave-temps").run();

tests/run-make/ice-dep-cannot-find-dep/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// If we used `rustc` the additional '-L rmake_out' option would allow rustc to
1717
// actually find the crate.
1818

19-
use run_make_support::{bare_rustc, fs as rfs, rust_lib_name, rustc};
19+
use run_make_support::{bare_rustc, rfs, rust_lib_name, rustc};
2020

2121
fn main() {
2222
rustc().crate_name("a").crate_type("rlib").input("a.rs").arg("--verbose").run();

tests/run-make/inaccessible-temp-dir/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// Reason: `set_readonly` has no effect on directories
2525
// and does not prevent modification.
2626

27-
use run_make_support::{fs as rfs, rustc, test_while_readonly};
27+
use run_make_support::{rfs, rustc, test_while_readonly};
2828

2929
fn main() {
3030
// Create an inaccessible directory.

tests/run-make/incr-prev-body-beyond-eof/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
//@ ignore-nvptx64-nvidia-cuda
1414
// FIXME: can't find crate for `std`
1515

16-
use run_make_support::fs as rfs;
16+
use run_make_support::rfs;
1717
use run_make_support::rustc;
1818

1919
fn main() {

tests/run-make/incr-test-moved-file/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
//@ ignore-nvptx64-nvidia-cuda
1515
// FIXME: can't find crate for 'std'
1616

17-
use run_make_support::{fs as rfs, rust_lib_name, rustc};
17+
use run_make_support::{rfs, rust_lib_name, rustc};
1818

1919
fn main() {
2020
rfs::create_dir("incr");

tests/run-make/incremental-debugger-visualizer/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// (in this case, foo.py and foo.natvis) are picked up when compiling incrementally.
33
// See https://github.com/rust-lang/rust/pull/111641
44

5-
use run_make_support::{fs as rfs, invalid_utf8_contains, invalid_utf8_not_contains, rustc};
5+
use run_make_support::{invalid_utf8_contains, invalid_utf8_not_contains, rfs, rustc};
66
use std::io::Read;
77

88
fn main() {

tests/run-make/incremental-session-fail/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// the ensuing compilation failure is not an ICE.
55
// See https://github.com/rust-lang/rust/pull/85698
66

7-
use run_make_support::{fs as rfs, rustc};
7+
use run_make_support::{rfs, rustc};
88

99
fn main() {
1010
rfs::create_file("session");

tests/run-make/inline-always-many-cgu/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use run_make_support::fs as rfs;
21
use run_make_support::regex::Regex;
2+
use run_make_support::rfs;
33
use run_make_support::rustc;
44

55
use std::ffi::OsStr;

tests/run-make/intrinsic-unreachable/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//@ ignore-windows
99
// Reason: Because of Windows exception handling, the code is not necessarily any shorter.
1010

11-
use run_make_support::{fs as rfs, rustc};
11+
use run_make_support::{rfs, rustc};
1212

1313
fn main() {
1414
rustc().opt().emit("asm").input("exit-ret.rs").run();

tests/run-make/invalid-library/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// one appearing in stderr in this scenario.
55
// See https://github.com/rust-lang/rust/pull/12645
66

7-
use run_make_support::fs as rfs;
7+
use run_make_support::rfs;
88
use run_make_support::{llvm_ar, rustc};
99

1010
fn main() {

tests/run-make/invalid-so/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// explains that the file exists, but that its metadata is incorrect.
55
// See https://github.com/rust-lang/rust/pull/88368
66

7-
use run_make_support::{dynamic_lib_name, fs as rfs, rustc};
7+
use run_make_support::{dynamic_lib_name, rfs, rustc};
88

99
fn main() {
1010
rfs::create_file(dynamic_lib_name("foo"));

tests/run-make/invalid-staticlib/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// an internal compiler error (ICE).
55
// See https://github.com/rust-lang/rust/pull/28673
66

7-
use run_make_support::{fs as rfs, rustc, static_lib_name};
7+
use run_make_support::{rfs, rustc, static_lib_name};
88

99
fn main() {
1010
rfs::create_file(static_lib_name("foo"));

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#[cfg(unix)]
44
extern crate libc;
55

6-
use run_make_support::{aux_build, fs as rfs};
6+
use run_make_support::{aux_build, rfs};
77

88
#[cfg(unix)]
99
use std::os::unix::fs::PermissionsExt;

tests/run-make/ls-metadata/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
//@ ignore-cross-compile
88

9-
use run_make_support::fs as rfs;
9+
use run_make_support::rfs;
1010
use run_make_support::rustc;
1111

1212
fn main() {

tests/run-make/lto-readonly-lib/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
//@ ignore-cross-compile
99

10-
use run_make_support::fs as rfs;
10+
use run_make_support::rfs;
1111
use run_make_support::{run, rust_lib_name, rustc, test_while_readonly};
1212

1313
fn main() {

tests/run-make/many-crates-but-no-match/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// what should be done to fix the issue.
55
// See https://github.com/rust-lang/rust/issues/13266
66

7-
use run_make_support::{fs as rfs, rustc};
7+
use run_make_support::{rfs, rustc};
88

99
fn main() {
1010
rfs::create_dir("a1");

tests/run-make/mixing-libs/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
//@ ignore-cross-compile
88

9-
use run_make_support::{dynamic_lib_name, fs as rfs, rustc};
9+
use run_make_support::{dynamic_lib_name, rfs, rustc};
1010

1111
fn main() {
1212
rustc().input("rlib.rs").crate_type("rlib").crate_type("dylib").run();

tests/run-make/moved-src-dir-fingerprint-ice/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
//@ ignore-nvptx64-nvidia-cuda
1818
// FIXME: can't find crate for 'std'
1919

20-
use run_make_support::{fs as rfs, rust_lib_name, rustc};
20+
use run_make_support::{rfs, rust_lib_name, rustc};
2121

2222
fn main() {
2323
rfs::create_dir("incr");

tests/run-make/non-unicode-env/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use run_make_support::fs as rfs;
1+
use run_make_support::rfs;
22
use run_make_support::rustc;
33

44
fn main() {

tests/run-make/non-unicode-in-incremental-dir/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use run_make_support::{fs as rfs, rustc};
1+
use run_make_support::{rfs, rustc};
22

33
fn main() {
44
#[cfg(unix)]

tests/run-make/obey-crate-type-flag/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//@ ignore-cross-compile
77

88
use run_make_support::{
9-
cwd, dynamic_lib_name, fs as rfs, has_extension, rust_lib_name, rustc, shallow_find_files,
9+
cwd, dynamic_lib_name, has_extension, rfs, rust_lib_name, rustc, shallow_find_files,
1010
};
1111
use std::path::Path;
1212

tests/run-make/output-filename-conflicts-with-directory/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// potentially-confusing linker error.
55
// See https://github.com/rust-lang/rust/pull/47203
66

7-
use run_make_support::{fs as rfs, rustc};
7+
use run_make_support::{rfs, rustc};
88

99
fn main() {
1010
rfs::create_dir("foo");

tests/run-make/output-filename-overwrites-input/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
//@ ignore-cross-compile
66

7-
use run_make_support::{fs as rfs, rustc};
7+
use run_make_support::{rfs, rustc};
88

99
fn main() {
1010
rfs::copy("foo.rs", "foo");

tests/run-make/output-type-permutations/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// See https://github.com/rust-lang/rust/pull/12020
66

77
use run_make_support::{
8-
bin_name, dynamic_lib_name, filename_not_in_denylist, fs as rfs, rust_lib_name, rustc,
8+
bin_name, dynamic_lib_name, filename_not_in_denylist, rfs, rust_lib_name, rustc,
99
shallow_find_files, static_lib_name,
1010
};
1111
use std::path::PathBuf;

tests/run-make/parallel-rustc-no-overwrite/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// conflicts. This test uses this flag and checks for successful compilation.
66
// See https://github.com/rust-lang/rust/pull/83846
77

8-
use run_make_support::{fs as rfs, rustc};
8+
use run_make_support::{rfs, rustc};
99
use std::sync::{Arc, Barrier};
1010
use std::thread;
1111

tests/run-make/pgo-branch-weights/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//@ needs-profiler-support
1111
//@ ignore-cross-compile
1212

13-
use run_make_support::{fs as rfs, llvm_filecheck, llvm_profdata, run_with_args, rustc};
13+
use run_make_support::{llvm_filecheck, llvm_profdata, rfs, run_with_args, rustc};
1414
use std::path::Path;
1515

1616
fn main() {

tests/run-make/pgo-use/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//@ ignore-cross-compile
1010

1111
use run_make_support::{
12-
cwd, fs as rfs, has_extension, has_prefix, llvm_filecheck, llvm_profdata, run_with_args, rustc,
12+
cwd, has_extension, has_prefix, llvm_filecheck, llvm_profdata, rfs, run_with_args, rustc,
1313
shallow_find_files,
1414
};
1515

tests/run-make/prefer-dylib/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ ignore-cross-compile
22

3-
use run_make_support::{dynamic_lib_name, fs as rfs, run, run_fail, rustc};
3+
use run_make_support::{dynamic_lib_name, rfs, run, run_fail, rustc};
44

55
fn main() {
66
rustc().input("bar.rs").crate_type("dylib").crate_type("rlib").arg("-Cprefer-dynamic").run();

0 commit comments

Comments
 (0)