tests: update for rfs rename

This commit is contained in:
许杰友 Jieyou Xu (Joe) 2024-07-17 13:31:38 +00:00
parent 1f1bf4c71b
commit d69cc1ccbf
80 changed files with 80 additions and 82 deletions

View File

@ -5,7 +5,7 @@
use std::path::PathBuf; use std::path::PathBuf;
use run_make_support::{aux_build, fs as rfs, rustc, source_root}; use run_make_support::{aux_build, rfs, rustc, source_root};
fn main() { fn main() {
aux_build().input("stable.rs").emit("metadata").run(); aux_build().input("stable.rs").emit("metadata").run();

View File

@ -3,7 +3,7 @@
//@ ignore-cross-compile //@ ignore-cross-compile
use run_make_support::{cc, cwd, dynamic_lib_extension, fs as rfs, is_msvc, run, run_fail, rustc}; use run_make_support::{cc, cwd, dynamic_lib_extension, is_msvc, rfs, run, run_fail, rustc};
fn main() { fn main() {
rustc().input("foo.rs").run(); rustc().input("foo.rs").run();

View File

@ -3,7 +3,7 @@
//@ ignore-cross-compile //@ ignore-cross-compile
use run_make_support::fs::remove_file; use run_make_support::rfs::remove_file;
use run_make_support::{cc, extra_c_flags, run, rustc, static_lib_name}; use run_make_support::{cc, extra_c_flags, run, rustc, static_lib_name};
use std::fs; use std::fs;

View File

@ -10,7 +10,7 @@
//@ ignore-cross-compile //@ ignore-cross-compile
use run_make_support::{cc, cwd, dynamic_lib_name, fs as rfs, is_msvc, run, rustc}; use run_make_support::{cc, cwd, dynamic_lib_name, is_msvc, rfs, run, rustc};
fn main() { fn main() {
rustc().input("bar.rs").run(); rustc().input("bar.rs").run();

View File

@ -9,8 +9,8 @@
use std::path::PathBuf; use std::path::PathBuf;
use run_make_support::fs as rfs;
use run_make_support::llvm_readobj; use run_make_support::llvm_readobj;
use run_make_support::rfs;
use run_make_support::rustc; use run_make_support::rustc;
use run_make_support::{cwd, env_var, run_in_tmpdir}; use run_make_support::{cwd, env_var, run_in_tmpdir};

View File

@ -14,12 +14,12 @@
#![deny(warnings)] #![deny(warnings)]
use run_make_support::fs::{read, read_dir};
use run_make_support::object::read::archive::ArchiveFile; use run_make_support::object::read::archive::ArchiveFile;
use run_make_support::object::read::Object; use run_make_support::object::read::Object;
use run_make_support::object::ObjectSection; use run_make_support::object::ObjectSection;
use run_make_support::object::ObjectSymbol; use run_make_support::object::ObjectSymbol;
use run_make_support::object::RelocationTarget; use run_make_support::object::RelocationTarget;
use run_make_support::rfs::{read, read_dir};
use run_make_support::{cmd, env_var, object}; use run_make_support::{cmd, env_var, object};
use std::collections::HashSet; use std::collections::HashSet;
use std::path::PathBuf; use std::path::PathBuf;

View File

@ -9,7 +9,7 @@
//@ ignore-wasm64 //@ ignore-wasm64
// Reason: a C compiler is required for build_native_static_lib // Reason: a C compiler is required for build_native_static_lib
use run_make_support::{build_native_static_lib, fs as rfs, rustc, static_lib_name}; use run_make_support::{build_native_static_lib, rfs, rustc, static_lib_name};
fn main() { fn main() {
build_native_static_lib("native"); build_native_static_lib("native");

View File

@ -1,6 +1,6 @@
// Tests that const prop lints interrupting codegen don't leave `.o` files around. // Tests that const prop lints interrupting codegen don't leave `.o` files around.
use run_make_support::{cwd, fs as rfs, rustc}; use run_make_support::{cwd, rfs, rustc};
fn main() { fn main() {
rustc().input("input.rs").run_fail().assert_exit_code(1); rustc().input("input.rs").run_fail().assert_exit_code(1);

View File

@ -4,7 +4,7 @@
// and the compiler flags, and checks that the flag is favoured each time. // and the compiler flags, and checks that the flag is favoured each time.
// See https://github.com/rust-lang/rust/pull/15518 // See https://github.com/rust-lang/rust/pull/15518
use run_make_support::{bin_name, fs as rfs, rustc}; use run_make_support::{bin_name, rfs, rustc};
fn main() { fn main() {
rustc().input("foo.rs").run(); rustc().input("foo.rs").run();

View File

@ -1,7 +1,7 @@
// Check that valid binaries are persisted by running them, regardless of whether the // Check that valid binaries are persisted by running them, regardless of whether the
// --run or --no-run option is used. // --run or --no-run option is used.
use run_make_support::fs::{create_dir, remove_dir_all}; use run_make_support::rfs::{create_dir, remove_dir_all};
use run_make_support::{run, rustc, rustdoc}; use run_make_support::{run, rustc, rustdoc};
use std::path::Path; use std::path::Path;

View File

@ -1,6 +1,6 @@
// Tests behavior of rustdoc `--runtool`. // Tests behavior of rustdoc `--runtool`.
use run_make_support::fs::{create_dir, remove_dir_all}; use run_make_support::rfs::{create_dir, remove_dir_all};
use run_make_support::{rustc, rustdoc}; use run_make_support::{rustc, rustdoc};
use std::path::PathBuf; use std::path::PathBuf;

View File

@ -4,7 +4,7 @@
// a specific expected string. // a specific expected string.
// See https://github.com/rust-lang/rust/pull/105481 // See https://github.com/rust-lang/rust/pull/105481
use run_make_support::{cwd, fs as rfs, rustc}; use run_make_support::{cwd, rfs, rustc};
fn main() { fn main() {
rustc() rustc()

View File

@ -8,7 +8,7 @@
//@ ignore-cross-compile //@ ignore-cross-compile
// Reason: the compiled binary is executed // Reason: the compiled binary is executed
use run_make_support::{dynamic_lib_name, fs as rfs, run, run_fail, rustc}; use run_make_support::{dynamic_lib_name, rfs, run, run_fail, rustc};
fn main() { fn main() {
rustc().input("m1.rs").arg("-Cprefer-dynamic").run(); rustc().input("m1.rs").arg("-Cprefer-dynamic").run();

View File

@ -1,6 +1,6 @@
use std::path::Path; use std::path::Path;
use run_make_support::{fs as rfs, rustc}; use run_make_support::{rfs, rustc};
fn emit_and_check(out_dir: &Path, out_file: &str, format: &str) { fn emit_and_check(out_dir: &Path, out_file: &str, format: &str) {
let out_file = out_dir.join(out_file); let out_file = out_dir.join(out_file);

View File

@ -6,7 +6,7 @@
// adding a new output type (in this test, metadata). // adding a new output type (in this test, metadata).
// See https://github.com/rust-lang/rust/issues/86044 // See https://github.com/rust-lang/rust/issues/86044
use run_make_support::{diff, fs as rfs, rustc}; use run_make_support::{diff, rfs, rustc};
fn main() { fn main() {
rfs::create_dir("emit"); rfs::create_dir("emit");

View File

@ -8,7 +8,7 @@
//@ ignore-cross-compile //@ ignore-cross-compile
// Reason: the compiled binary is executed // Reason: the compiled binary is executed
use run_make_support::{dynamic_lib_name, fs as rfs, run, run_fail, rust_lib_name, rustc}; use run_make_support::{dynamic_lib_name, rfs, run, run_fail, rust_lib_name, rustc};
fn main() { fn main() {
rustc().input("bar.rs").crate_type("rlib").crate_type("dylib").arg("-Cprefer-dynamic").run(); rustc().input("bar.rs").crate_type("rlib").crate_type("dylib").arg("-Cprefer-dynamic").run();

View File

@ -6,9 +6,7 @@
// are named as expected. // are named as expected.
// See https://github.com/rust-lang/rust/pull/15686 // See https://github.com/rust-lang/rust/pull/15686
use run_make_support::{ use run_make_support::{bin_name, cwd, has_prefix, has_suffix, rfs, rustc, shallow_find_files};
bin_name, cwd, fs as rfs, has_prefix, has_suffix, rustc, shallow_find_files,
};
fn main() { fn main() {
rustc().extra_filename("bar").input("foo.rs").arg("-Csave-temps").run(); rustc().extra_filename("bar").input("foo.rs").arg("-Csave-temps").run();

View File

@ -16,7 +16,7 @@
// If we used `rustc` the additional '-L rmake_out' option would allow rustc to // If we used `rustc` the additional '-L rmake_out' option would allow rustc to
// actually find the crate. // actually find the crate.
use run_make_support::{bare_rustc, fs as rfs, rust_lib_name, rustc}; use run_make_support::{bare_rustc, rfs, rust_lib_name, rustc};
fn main() { fn main() {
rustc().crate_name("a").crate_type("rlib").input("a.rs").arg("--verbose").run(); rustc().crate_name("a").crate_type("rlib").input("a.rs").arg("--verbose").run();

View File

@ -24,7 +24,7 @@
// Reason: `set_readonly` has no effect on directories // Reason: `set_readonly` has no effect on directories
// and does not prevent modification. // and does not prevent modification.
use run_make_support::{fs as rfs, rustc, test_while_readonly}; use run_make_support::{rfs, rustc, test_while_readonly};
fn main() { fn main() {
// Create an inaccessible directory. // Create an inaccessible directory.

View File

@ -13,7 +13,7 @@
//@ ignore-nvptx64-nvidia-cuda //@ ignore-nvptx64-nvidia-cuda
// FIXME: can't find crate for `std` // FIXME: can't find crate for `std`
use run_make_support::fs as rfs; use run_make_support::rfs;
use run_make_support::rustc; use run_make_support::rustc;
fn main() { fn main() {

View File

@ -14,7 +14,7 @@
//@ ignore-nvptx64-nvidia-cuda //@ ignore-nvptx64-nvidia-cuda
// FIXME: can't find crate for 'std' // FIXME: can't find crate for 'std'
use run_make_support::{fs as rfs, rust_lib_name, rustc}; use run_make_support::{rfs, rust_lib_name, rustc};
fn main() { fn main() {
rfs::create_dir("incr"); rfs::create_dir("incr");

View File

@ -2,7 +2,7 @@
// (in this case, foo.py and foo.natvis) are picked up when compiling incrementally. // (in this case, foo.py and foo.natvis) are picked up when compiling incrementally.
// See https://github.com/rust-lang/rust/pull/111641 // See https://github.com/rust-lang/rust/pull/111641
use run_make_support::{fs as rfs, invalid_utf8_contains, invalid_utf8_not_contains, rustc}; use run_make_support::{invalid_utf8_contains, invalid_utf8_not_contains, rfs, rustc};
use std::io::Read; use std::io::Read;
fn main() { fn main() {

View File

@ -4,7 +4,7 @@
// the ensuing compilation failure is not an ICE. // the ensuing compilation failure is not an ICE.
// See https://github.com/rust-lang/rust/pull/85698 // See https://github.com/rust-lang/rust/pull/85698
use run_make_support::{fs as rfs, rustc}; use run_make_support::{rfs, rustc};
fn main() { fn main() {
rfs::create_file("session"); rfs::create_file("session");

View File

@ -1,5 +1,5 @@
use run_make_support::fs as rfs;
use run_make_support::regex::Regex; use run_make_support::regex::Regex;
use run_make_support::rfs;
use run_make_support::rustc; use run_make_support::rustc;
use std::ffi::OsStr; use std::ffi::OsStr;

View File

@ -8,7 +8,7 @@
//@ ignore-windows //@ ignore-windows
// Reason: Because of Windows exception handling, the code is not necessarily any shorter. // Reason: Because of Windows exception handling, the code is not necessarily any shorter.
use run_make_support::{fs as rfs, rustc}; use run_make_support::{rfs, rustc};
fn main() { fn main() {
rustc().opt().emit("asm").input("exit-ret.rs").run(); rustc().opt().emit("asm").input("exit-ret.rs").run();

View File

@ -4,7 +4,7 @@
// one appearing in stderr in this scenario. // one appearing in stderr in this scenario.
// See https://github.com/rust-lang/rust/pull/12645 // See https://github.com/rust-lang/rust/pull/12645
use run_make_support::fs as rfs; use run_make_support::rfs;
use run_make_support::{llvm_ar, rustc}; use run_make_support::{llvm_ar, rustc};
fn main() { fn main() {

View File

@ -4,7 +4,7 @@
// explains that the file exists, but that its metadata is incorrect. // explains that the file exists, but that its metadata is incorrect.
// See https://github.com/rust-lang/rust/pull/88368 // See https://github.com/rust-lang/rust/pull/88368
use run_make_support::{dynamic_lib_name, fs as rfs, rustc}; use run_make_support::{dynamic_lib_name, rfs, rustc};
fn main() { fn main() {
rfs::create_file(dynamic_lib_name("foo")); rfs::create_file(dynamic_lib_name("foo"));

View File

@ -4,7 +4,7 @@
// an internal compiler error (ICE). // an internal compiler error (ICE).
// See https://github.com/rust-lang/rust/pull/28673 // See https://github.com/rust-lang/rust/pull/28673
use run_make_support::{fs as rfs, rustc, static_lib_name}; use run_make_support::{rfs, rustc, static_lib_name};
fn main() { fn main() {
rfs::create_file(static_lib_name("foo")); rfs::create_file(static_lib_name("foo"));

View File

@ -3,7 +3,7 @@
#[cfg(unix)] #[cfg(unix)]
extern crate libc; extern crate libc;
use run_make_support::{aux_build, fs as rfs}; use run_make_support::{aux_build, rfs};
#[cfg(unix)] #[cfg(unix)]
use std::os::unix::fs::PermissionsExt; use std::os::unix::fs::PermissionsExt;

View File

@ -6,7 +6,7 @@
//@ ignore-cross-compile //@ ignore-cross-compile
use run_make_support::fs as rfs; use run_make_support::rfs;
use run_make_support::rustc; use run_make_support::rustc;
fn main() { fn main() {

View File

@ -7,7 +7,7 @@
//@ ignore-cross-compile //@ ignore-cross-compile
use run_make_support::fs as rfs; use run_make_support::rfs;
use run_make_support::{run, rust_lib_name, rustc, test_while_readonly}; use run_make_support::{run, rust_lib_name, rustc, test_while_readonly};
fn main() { fn main() {

View File

@ -4,7 +4,7 @@
// what should be done to fix the issue. // what should be done to fix the issue.
// See https://github.com/rust-lang/rust/issues/13266 // See https://github.com/rust-lang/rust/issues/13266
use run_make_support::{fs as rfs, rustc}; use run_make_support::{rfs, rustc};
fn main() { fn main() {
rfs::create_dir("a1"); rfs::create_dir("a1");

View File

@ -6,7 +6,7 @@
//@ ignore-cross-compile //@ ignore-cross-compile
use run_make_support::{dynamic_lib_name, fs as rfs, rustc}; use run_make_support::{dynamic_lib_name, rfs, rustc};
fn main() { fn main() {
rustc().input("rlib.rs").crate_type("rlib").crate_type("dylib").run(); rustc().input("rlib.rs").crate_type("rlib").crate_type("dylib").run();

View File

@ -17,7 +17,7 @@
//@ ignore-nvptx64-nvidia-cuda //@ ignore-nvptx64-nvidia-cuda
// FIXME: can't find crate for 'std' // FIXME: can't find crate for 'std'
use run_make_support::{fs as rfs, rust_lib_name, rustc}; use run_make_support::{rfs, rust_lib_name, rustc};
fn main() { fn main() {
rfs::create_dir("incr"); rfs::create_dir("incr");

View File

@ -1,4 +1,4 @@
use run_make_support::fs as rfs; use run_make_support::rfs;
use run_make_support::rustc; use run_make_support::rustc;
fn main() { fn main() {

View File

@ -1,4 +1,4 @@
use run_make_support::{fs as rfs, rustc}; use run_make_support::{rfs, rustc};
fn main() { fn main() {
#[cfg(unix)] #[cfg(unix)]

View File

@ -6,7 +6,7 @@
//@ ignore-cross-compile //@ ignore-cross-compile
use run_make_support::{ use run_make_support::{
cwd, dynamic_lib_name, fs as rfs, has_extension, rust_lib_name, rustc, shallow_find_files, cwd, dynamic_lib_name, has_extension, rfs, rust_lib_name, rustc, shallow_find_files,
}; };
use std::path::Path; use std::path::Path;

View File

@ -4,7 +4,7 @@
// potentially-confusing linker error. // potentially-confusing linker error.
// See https://github.com/rust-lang/rust/pull/47203 // See https://github.com/rust-lang/rust/pull/47203
use run_make_support::{fs as rfs, rustc}; use run_make_support::{rfs, rustc};
fn main() { fn main() {
rfs::create_dir("foo"); rfs::create_dir("foo");

View File

@ -4,7 +4,7 @@
//@ ignore-cross-compile //@ ignore-cross-compile
use run_make_support::{fs as rfs, rustc}; use run_make_support::{rfs, rustc};
fn main() { fn main() {
rfs::copy("foo.rs", "foo"); rfs::copy("foo.rs", "foo");

View File

@ -5,7 +5,7 @@
// See https://github.com/rust-lang/rust/pull/12020 // See https://github.com/rust-lang/rust/pull/12020
use run_make_support::{ use run_make_support::{
bin_name, dynamic_lib_name, filename_not_in_denylist, fs as rfs, rust_lib_name, rustc, bin_name, dynamic_lib_name, filename_not_in_denylist, rfs, rust_lib_name, rustc,
shallow_find_files, static_lib_name, shallow_find_files, static_lib_name,
}; };
use std::path::PathBuf; use std::path::PathBuf;

View File

@ -5,7 +5,7 @@
// conflicts. This test uses this flag and checks for successful compilation. // conflicts. This test uses this flag and checks for successful compilation.
// See https://github.com/rust-lang/rust/pull/83846 // See https://github.com/rust-lang/rust/pull/83846
use run_make_support::{fs as rfs, rustc}; use run_make_support::{rfs, rustc};
use std::sync::{Arc, Barrier}; use std::sync::{Arc, Barrier};
use std::thread; use std::thread;

View File

@ -10,7 +10,7 @@
//@ needs-profiler-support //@ needs-profiler-support
//@ ignore-cross-compile //@ ignore-cross-compile
use run_make_support::{fs as rfs, llvm_filecheck, llvm_profdata, run_with_args, rustc}; use run_make_support::{llvm_filecheck, llvm_profdata, rfs, run_with_args, rustc};
use std::path::Path; use std::path::Path;
fn main() { fn main() {

View File

@ -9,7 +9,7 @@
//@ ignore-cross-compile //@ ignore-cross-compile
use run_make_support::{ use run_make_support::{
cwd, fs as rfs, has_extension, has_prefix, llvm_filecheck, llvm_profdata, run_with_args, rustc, cwd, has_extension, has_prefix, llvm_filecheck, llvm_profdata, rfs, run_with_args, rustc,
shallow_find_files, shallow_find_files,
}; };

View File

@ -1,6 +1,6 @@
//@ ignore-cross-compile //@ ignore-cross-compile
use run_make_support::{dynamic_lib_name, fs as rfs, run, run_fail, rustc}; use run_make_support::{dynamic_lib_name, rfs, run, run_fail, rustc};
fn main() { fn main() {
rustc().input("bar.rs").crate_type("dylib").crate_type("rlib").arg("-Cprefer-dynamic").run(); rustc().input("bar.rs").crate_type("dylib").crate_type("rlib").arg("-Cprefer-dynamic").run();

View File

@ -3,7 +3,7 @@
//@ ignore-cross-compile //@ ignore-cross-compile
use run_make_support::{dynamic_lib_name, fs as rfs, path, run, rust_lib_name, rustc}; use run_make_support::{dynamic_lib_name, path, rfs, run, rust_lib_name, rustc};
fn main() { fn main() {
rustc().input("bar.rs").crate_type("dylib").crate_type("rlib").run(); rustc().input("bar.rs").crate_type("dylib").crate_type("rlib").run();

View File

@ -5,7 +5,7 @@
// does not get an unexpected dep-info file. // does not get an unexpected dep-info file.
// See https://github.com/rust-lang/rust/issues/112898 // See https://github.com/rust-lang/rust/issues/112898
use run_make_support::{fs as rfs, invalid_utf8_contains, rustc}; use run_make_support::{invalid_utf8_contains, rfs, rustc};
use std::path::Path; use std::path::Path;
fn main() { fn main() {

View File

@ -10,7 +10,7 @@ use std::ffi::OsString;
use std::iter::FromIterator; use std::iter::FromIterator;
use std::path::PathBuf; use std::path::PathBuf;
use run_make_support::{fs as rfs, rustc}; use run_make_support::{rfs, rustc};
struct PrintCfg { struct PrintCfg {
target: &'static str, target: &'static str,

View File

@ -4,7 +4,7 @@
use std::ffi::OsString; use std::ffi::OsString;
use std::path::PathBuf; use std::path::PathBuf;
use run_make_support::{fs as rfs, rustc, target}; use run_make_support::{rfs, rustc, target};
struct Option<'a> { struct Option<'a> {
target: &'a str, target: &'a str,

View File

@ -4,7 +4,7 @@
// See https://github.com/rust-lang/rust/pull/85344 // See https://github.com/rust-lang/rust/pull/85344
use run_make_support::bstr::ByteSlice; use run_make_support::bstr::ByteSlice;
use run_make_support::{bstr, fs as rfs, is_darwin, rustc}; use run_make_support::{bstr, is_darwin, rfs, rustc};
fn main() { fn main() {
let mut out_simple = rustc(); let mut out_simple = rustc();

View File

@ -3,7 +3,7 @@
use gimli::{AttributeValue, EndianRcSlice, Reader, RunTimeEndian}; use gimli::{AttributeValue, EndianRcSlice, Reader, RunTimeEndian};
use object::{Object, ObjectSection}; use object::{Object, ObjectSection};
use run_make_support::{fs as rfs, gimli, object, rustc}; use run_make_support::{gimli, object, rfs, rustc};
use std::collections::HashMap; use std::collections::HashMap;
use std::path::PathBuf; use std::path::PathBuf;
use std::rc::Rc; use std::rc::Rc;

View File

@ -7,7 +7,7 @@
//@ ignore-cross-compile //@ ignore-cross-compile
use run_make_support::{bin_name, fs as rfs, rustc}; use run_make_support::{bin_name, rfs, rustc};
use std::path::Path; use std::path::Path;
fn compile(output_file: &str, emit: Option<&str>) { fn compile(output_file: &str, emit: Option<&str>) {

View File

@ -5,7 +5,7 @@
// the renamed library. // the renamed library.
// See https://github.com/rust-lang/rust/pull/49253 // See https://github.com/rust-lang/rust/pull/49253
use run_make_support::fs as rfs; use run_make_support::rfs;
use run_make_support::rustc; use run_make_support::rustc;
fn main() { fn main() {

View File

@ -8,7 +8,7 @@
//@ ignore-cross-compile //@ ignore-cross-compile
// Reason: the compiled binary is executed // Reason: the compiled binary is executed
use run_make_support::{fs as rfs, run, rust_lib_name, rustc}; use run_make_support::{rfs, run, rust_lib_name, rustc};
fn main() { fn main() {
rustc().input("m1.rs").run(); rustc().input("m1.rs").run();

View File

@ -1,4 +1,4 @@
use run_make_support::{fs as rfs, htmldocck, rustc, rustdoc, source_root}; use run_make_support::{htmldocck, rfs, rustc, rustdoc, source_root};
use std::path::Path; use std::path::Path;
pub fn scrape(extra_args: &[&str]) { pub fn scrape(extra_args: &[&str]) {

View File

@ -1,4 +1,4 @@
use run_make_support::{fs as rfs, rustdoc}; use run_make_support::{rfs, rustdoc};
use std::iter; use std::iter;
use std::path::Path; use std::path::Path;

View File

@ -1,6 +1,6 @@
// Test that rustdoc will properly load in a theme file and display it in the theme selector. // Test that rustdoc will properly load in a theme file and display it in the theme selector.
use run_make_support::{fs as rfs, htmldocck, rustdoc, source_root}; use run_make_support::{htmldocck, rfs, rustdoc, source_root};
use std::path::Path; use std::path::Path;
fn main() { fn main() {

View File

@ -1,4 +1,4 @@
use run_make_support::fs as rfs; use run_make_support::rfs;
use std::path::{Path, PathBuf}; use std::path::{Path, PathBuf};
use run_make_support::{assert_dirs_are_equal, rustdoc}; use run_make_support::{assert_dirs_are_equal, rustdoc};

View File

@ -5,7 +5,7 @@
// See https://github.com/rust-lang/rust/pull/16367 // See https://github.com/rust-lang/rust/pull/16367
use run_make_support::{ use run_make_support::{
count_regex_matches_in_files_with_extension, cwd, fs as rfs, has_extension, regex, rustc, count_regex_matches_in_files_with_extension, cwd, has_extension, regex, rfs, rustc,
shallow_find_files, shallow_find_files,
}; };

View File

@ -6,7 +6,7 @@
// See https://github.com/rust-lang/rust/pull/16367 // See https://github.com/rust-lang/rust/pull/16367
use run_make_support::{ use run_make_support::{
count_regex_matches_in_files_with_extension, cwd, fs as rfs, has_extension, regex, rustc, count_regex_matches_in_files_with_extension, cwd, has_extension, regex, rfs, rustc,
shallow_find_files, shallow_find_files,
}; };

View File

@ -4,7 +4,7 @@
// See https://github.com/rust-lang/rust/pull/16367 // See https://github.com/rust-lang/rust/pull/16367
use run_make_support::{ use run_make_support::{
count_regex_matches_in_files_with_extension, cwd, fs as rfs, has_extension, regex, rustc, count_regex_matches_in_files_with_extension, cwd, has_extension, regex, rfs, rustc,
shallow_find_files, shallow_find_files,
}; };

View File

@ -11,7 +11,7 @@
//@ ignore-windows //@ ignore-windows
// Reason: Windows refuses files with < and > in their names // Reason: Windows refuses files with < and > in their names
use run_make_support::{diff, fs as rfs, run, rustc}; use run_make_support::{diff, rfs, run, rustc};
fn main() { fn main() {
rfs::create_file("<leading-lt"); rfs::create_file("<leading-lt");

View File

@ -11,7 +11,7 @@
//@ ignore-cross-compile //@ ignore-cross-compile
//@ needs-symlink //@ needs-symlink
use run_make_support::{cwd, fs as rfs, rustc}; use run_make_support::{cwd, rfs, rustc};
fn main() { fn main() {
rustc().input("foo.rs").run(); rustc().input("foo.rs").run();

View File

@ -8,7 +8,7 @@
//@ ignore-cross-compile //@ ignore-cross-compile
//@ needs-symlink //@ needs-symlink
use run_make_support::{dynamic_lib_name, fs as rfs, rustc}; use run_make_support::{dynamic_lib_name, rfs, rustc};
fn main() { fn main() {
rustc().input("foo.rs").arg("-Cprefer-dynamic").run(); rustc().input("foo.rs").arg("-Cprefer-dynamic").run();

View File

@ -8,7 +8,7 @@
//@ ignore-cross-compile //@ ignore-cross-compile
//@ needs-symlink //@ needs-symlink
use run_make_support::{cwd, fs as rfs, rustc}; use run_make_support::{cwd, rfs, rustc};
fn main() { fn main() {
rustc().input("foo.rs").crate_type("rlib").output("foo.xxx").run(); rustc().input("foo.rs").crate_type("rlib").output("foo.xxx").run();

View File

@ -5,7 +5,7 @@
// using them correctly, or fails with the right error message when using them improperly. // using them correctly, or fails with the right error message when using them improperly.
// See https://github.com/rust-lang/rust/pull/16156 // See https://github.com/rust-lang/rust/pull/16156
use run_make_support::{diff, fs as rfs, rustc}; use run_make_support::{diff, rfs, rustc};
fn main() { fn main() {
rustc().input("foo.rs").target("my-awesome-platform.json").crate_type("lib").emit("asm").run(); rustc().input("foo.rs").target("my-awesome-platform.json").crate_type("lib").emit("asm").run();

View File

@ -4,7 +4,7 @@
// output successfully added the file as a dependency. // output successfully added the file as a dependency.
// See https://github.com/rust-lang/rust/pull/84029 // See https://github.com/rust-lang/rust/pull/84029
use run_make_support::{fs as rfs, rustc}; use run_make_support::{rfs, rustc};
fn main() { fn main() {
rustc().input("macro_def.rs").run(); rustc().input("macro_def.rs").run();

View File

@ -8,7 +8,7 @@
// Reason: the binary is executed // Reason: the binary is executed
//@ needs-profiler-support //@ needs-profiler-support
use run_make_support::{fs as rfs, llvm_profdata, run, rustc}; use run_make_support::{llvm_profdata, rfs, run, rustc};
fn main() { fn main() {
// Generate the profile-guided-optimization (PGO) profiles // Generate the profile-guided-optimization (PGO) profiles

View File

@ -1,6 +1,6 @@
//@ ignore-cross-compile //@ ignore-cross-compile
use run_make_support::fs as rfs; use run_make_support::rfs;
use run_make_support::{assert_contains, run, rustc}; use run_make_support::{assert_contains, run, rustc};
fn main() { fn main() {

View File

@ -1,6 +1,6 @@
//@ only-wasm32-wasip1 //@ only-wasm32-wasip1
use run_make_support::{fs as rfs, rustc, wasmparser}; use run_make_support::{rfs, rustc, wasmparser};
use std::collections::HashMap; use std::collections::HashMap;
fn main() { fn main() {

View File

@ -1,6 +1,6 @@
//@ only-wasm32-wasip1 //@ only-wasm32-wasip1
use run_make_support::{fs as rfs, rustc, wasmparser}; use run_make_support::{rfs, rustc, wasmparser};
use std::collections::HashMap; use std::collections::HashMap;
use std::path::Path; use std::path::Path;

View File

@ -1,6 +1,6 @@
//@ only-wasm32-wasip1 //@ only-wasm32-wasip1
use run_make_support::{fs as rfs, rustc, wasmparser}; use run_make_support::{rfs, rustc, wasmparser};
use std::collections::HashMap; use std::collections::HashMap;
use std::path::Path; use std::path::Path;
use wasmparser::ExternalKind::*; use wasmparser::ExternalKind::*;

View File

@ -1,6 +1,6 @@
//@ only-wasm32-wasip1 //@ only-wasm32-wasip1
use run_make_support::{fs as rfs, rustc, wasmparser}; use run_make_support::{rfs, rustc, wasmparser};
use std::collections::HashMap; use std::collections::HashMap;
use wasmparser::TypeRef::Func; use wasmparser::TypeRef::Func;

View File

@ -1,7 +1,7 @@
//@ only-wasm32-wasip1 //@ only-wasm32-wasip1
#![deny(warnings)] #![deny(warnings)]
use run_make_support::{fs as rfs, rustc}; use run_make_support::{rfs, rustc};
fn main() { fn main() {
test("a"); test("a");

View File

@ -1,6 +1,6 @@
//@ only-wasm32-wasip1 //@ only-wasm32-wasip1
use run_make_support::{fs as rfs, rustc, wasmparser}; use run_make_support::{rfs, rustc, wasmparser};
use std::collections::HashMap; use std::collections::HashMap;
fn main() { fn main() {

View File

@ -1,7 +1,7 @@
//@ only-wasm32-wasip1 //@ only-wasm32-wasip1
#![deny(warnings)] #![deny(warnings)]
use run_make_support::{fs as rfs, rustc}; use run_make_support::{rfs, rustc};
fn main() { fn main() {
rustc().input("foo.rs").target("wasm32-wasip1").arg("-Clto").opt().run(); rustc().input("foo.rs").target("wasm32-wasip1").arg("-Clto").opt().run();

View File

@ -1,6 +1,6 @@
//@ only-wasm32-wasip1 //@ only-wasm32-wasip1
use run_make_support::{fs as rfs, rustc, wasmparser}; use run_make_support::{rfs, rustc, wasmparser};
use std::collections::{HashMap, HashSet}; use std::collections::{HashMap, HashSet};
use std::path::Path; use std::path::Path;

View File

@ -1,6 +1,6 @@
//@ only-wasm32-wasip1 //@ only-wasm32-wasip1
use run_make_support::{fs as rfs, rustc, wasmparser}; use run_make_support::{rfs, rustc, wasmparser};
use std::path::Path; use std::path::Path;
fn main() { fn main() {

View File

@ -1,6 +1,6 @@
//@ only-wasm32-wasip1 //@ only-wasm32-wasip1
use run_make_support::{fs as rfs, rustc, wasmparser}; use run_make_support::{rfs, rustc, wasmparser};
use std::path::Path; use std::path::Path;
fn main() { fn main() {

View File

@ -1,5 +1,5 @@
use run_make_support::fs as rfs;
use run_make_support::regex::Regex; use run_make_support::regex::Regex;
use run_make_support::rfs;
use run_make_support::{cwd, rustc}; use run_make_support::{cwd, rustc};
fn main() { fn main() {

View File

@ -3,7 +3,7 @@
// Tests that WS2_32.dll is not unnecessarily linked, see issue #85441 // Tests that WS2_32.dll is not unnecessarily linked, see issue #85441
use run_make_support::object::{self, read::Object}; use run_make_support::object::{self, read::Object};
use run_make_support::{fs as rfs, rustc}; use run_make_support::{rfs, rustc};
fn main() { fn main() {
rustc().input("empty.rs").run(); rustc().input("empty.rs").run();