tests: update for rfs
rename
This commit is contained in:
parent
1f1bf4c71b
commit
d69cc1ccbf
@ -5,7 +5,7 @@
|
||||
|
||||
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() {
|
||||
aux_build().input("stable.rs").emit("metadata").run();
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
//@ 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() {
|
||||
rustc().input("foo.rs").run();
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
//@ 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 std::fs;
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
//@ 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() {
|
||||
rustc().input("bar.rs").run();
|
||||
|
@ -9,8 +9,8 @@
|
||||
|
||||
use std::path::PathBuf;
|
||||
|
||||
use run_make_support::fs as rfs;
|
||||
use run_make_support::llvm_readobj;
|
||||
use run_make_support::rfs;
|
||||
use run_make_support::rustc;
|
||||
use run_make_support::{cwd, env_var, run_in_tmpdir};
|
||||
|
||||
|
@ -14,12 +14,12 @@
|
||||
|
||||
#![deny(warnings)]
|
||||
|
||||
use run_make_support::fs::{read, read_dir};
|
||||
use run_make_support::object::read::archive::ArchiveFile;
|
||||
use run_make_support::object::read::Object;
|
||||
use run_make_support::object::ObjectSection;
|
||||
use run_make_support::object::ObjectSymbol;
|
||||
use run_make_support::object::RelocationTarget;
|
||||
use run_make_support::rfs::{read, read_dir};
|
||||
use run_make_support::{cmd, env_var, object};
|
||||
use std::collections::HashSet;
|
||||
use std::path::PathBuf;
|
||||
|
@ -9,7 +9,7 @@
|
||||
//@ ignore-wasm64
|
||||
// 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() {
|
||||
build_native_static_lib("native");
|
||||
|
@ -1,6 +1,6 @@
|
||||
// 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() {
|
||||
rustc().input("input.rs").run_fail().assert_exit_code(1);
|
||||
|
@ -4,7 +4,7 @@
|
||||
// and the compiler flags, and checks that the flag is favoured each time.
|
||||
// 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() {
|
||||
rustc().input("foo.rs").run();
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Check that valid binaries are persisted by running them, regardless of whether the
|
||||
// --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 std::path::Path;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
// 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 std::path::PathBuf;
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
// a specific expected string.
|
||||
// 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() {
|
||||
rustc()
|
||||
|
@ -8,7 +8,7 @@
|
||||
//@ ignore-cross-compile
|
||||
// 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() {
|
||||
rustc().input("m1.rs").arg("-Cprefer-dynamic").run();
|
||||
|
@ -1,6 +1,6 @@
|
||||
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) {
|
||||
let out_file = out_dir.join(out_file);
|
||||
|
@ -6,7 +6,7 @@
|
||||
// adding a new output type (in this test, metadata).
|
||||
// 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() {
|
||||
rfs::create_dir("emit");
|
||||
|
@ -8,7 +8,7 @@
|
||||
//@ ignore-cross-compile
|
||||
// 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() {
|
||||
rustc().input("bar.rs").crate_type("rlib").crate_type("dylib").arg("-Cprefer-dynamic").run();
|
||||
|
@ -6,9 +6,7 @@
|
||||
// are named as expected.
|
||||
// See https://github.com/rust-lang/rust/pull/15686
|
||||
|
||||
use run_make_support::{
|
||||
bin_name, cwd, fs as rfs, has_prefix, has_suffix, rustc, shallow_find_files,
|
||||
};
|
||||
use run_make_support::{bin_name, cwd, has_prefix, has_suffix, rfs, rustc, shallow_find_files};
|
||||
|
||||
fn main() {
|
||||
rustc().extra_filename("bar").input("foo.rs").arg("-Csave-temps").run();
|
||||
|
@ -16,7 +16,7 @@
|
||||
// If we used `rustc` the additional '-L rmake_out' option would allow rustc to
|
||||
// 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() {
|
||||
rustc().crate_name("a").crate_type("rlib").input("a.rs").arg("--verbose").run();
|
||||
|
@ -24,7 +24,7 @@
|
||||
// Reason: `set_readonly` has no effect on directories
|
||||
// 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() {
|
||||
// Create an inaccessible directory.
|
||||
|
@ -13,7 +13,7 @@
|
||||
//@ ignore-nvptx64-nvidia-cuda
|
||||
// FIXME: can't find crate for `std`
|
||||
|
||||
use run_make_support::fs as rfs;
|
||||
use run_make_support::rfs;
|
||||
use run_make_support::rustc;
|
||||
|
||||
fn main() {
|
||||
|
@ -14,7 +14,7 @@
|
||||
//@ ignore-nvptx64-nvidia-cuda
|
||||
// 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() {
|
||||
rfs::create_dir("incr");
|
||||
|
@ -2,7 +2,7 @@
|
||||
// (in this case, foo.py and foo.natvis) are picked up when compiling incrementally.
|
||||
// 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;
|
||||
|
||||
fn main() {
|
||||
|
@ -4,7 +4,7 @@
|
||||
// the ensuing compilation failure is not an ICE.
|
||||
// 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() {
|
||||
rfs::create_file("session");
|
||||
|
@ -1,5 +1,5 @@
|
||||
use run_make_support::fs as rfs;
|
||||
use run_make_support::regex::Regex;
|
||||
use run_make_support::rfs;
|
||||
use run_make_support::rustc;
|
||||
|
||||
use std::ffi::OsStr;
|
||||
|
@ -8,7 +8,7 @@
|
||||
//@ ignore-windows
|
||||
// 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() {
|
||||
rustc().opt().emit("asm").input("exit-ret.rs").run();
|
||||
|
@ -4,7 +4,7 @@
|
||||
// one appearing in stderr in this scenario.
|
||||
// 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};
|
||||
|
||||
fn main() {
|
||||
|
@ -4,7 +4,7 @@
|
||||
// explains that the file exists, but that its metadata is incorrect.
|
||||
// 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() {
|
||||
rfs::create_file(dynamic_lib_name("foo"));
|
||||
|
@ -4,7 +4,7 @@
|
||||
// an internal compiler error (ICE).
|
||||
// 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() {
|
||||
rfs::create_file(static_lib_name("foo"));
|
||||
|
@ -3,7 +3,7 @@
|
||||
#[cfg(unix)]
|
||||
extern crate libc;
|
||||
|
||||
use run_make_support::{aux_build, fs as rfs};
|
||||
use run_make_support::{aux_build, rfs};
|
||||
|
||||
#[cfg(unix)]
|
||||
use std::os::unix::fs::PermissionsExt;
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
//@ ignore-cross-compile
|
||||
|
||||
use run_make_support::fs as rfs;
|
||||
use run_make_support::rfs;
|
||||
use run_make_support::rustc;
|
||||
|
||||
fn main() {
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
//@ 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};
|
||||
|
||||
fn main() {
|
||||
|
@ -4,7 +4,7 @@
|
||||
// what should be done to fix the issue.
|
||||
// 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() {
|
||||
rfs::create_dir("a1");
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
//@ 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() {
|
||||
rustc().input("rlib.rs").crate_type("rlib").crate_type("dylib").run();
|
||||
|
@ -17,7 +17,7 @@
|
||||
//@ ignore-nvptx64-nvidia-cuda
|
||||
// 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() {
|
||||
rfs::create_dir("incr");
|
||||
|
@ -1,4 +1,4 @@
|
||||
use run_make_support::fs as rfs;
|
||||
use run_make_support::rfs;
|
||||
use run_make_support::rustc;
|
||||
|
||||
fn main() {
|
||||
|
@ -1,4 +1,4 @@
|
||||
use run_make_support::{fs as rfs, rustc};
|
||||
use run_make_support::{rfs, rustc};
|
||||
|
||||
fn main() {
|
||||
#[cfg(unix)]
|
||||
|
@ -6,7 +6,7 @@
|
||||
//@ ignore-cross-compile
|
||||
|
||||
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;
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
// potentially-confusing linker error.
|
||||
// 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() {
|
||||
rfs::create_dir("foo");
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
//@ ignore-cross-compile
|
||||
|
||||
use run_make_support::{fs as rfs, rustc};
|
||||
use run_make_support::{rfs, rustc};
|
||||
|
||||
fn main() {
|
||||
rfs::copy("foo.rs", "foo");
|
||||
|
@ -5,7 +5,7 @@
|
||||
// See https://github.com/rust-lang/rust/pull/12020
|
||||
|
||||
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,
|
||||
};
|
||||
use std::path::PathBuf;
|
||||
|
@ -5,7 +5,7 @@
|
||||
// conflicts. This test uses this flag and checks for successful compilation.
|
||||
// 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::thread;
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
//@ needs-profiler-support
|
||||
//@ 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;
|
||||
|
||||
fn main() {
|
||||
|
@ -9,7 +9,7 @@
|
||||
//@ ignore-cross-compile
|
||||
|
||||
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,
|
||||
};
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
//@ 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() {
|
||||
rustc().input("bar.rs").crate_type("dylib").crate_type("rlib").arg("-Cprefer-dynamic").run();
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
//@ 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() {
|
||||
rustc().input("bar.rs").crate_type("dylib").crate_type("rlib").run();
|
||||
|
@ -5,7 +5,7 @@
|
||||
// does not get an unexpected dep-info file.
|
||||
// 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;
|
||||
|
||||
fn main() {
|
||||
|
@ -10,7 +10,7 @@
|
||||
use std::iter::FromIterator;
|
||||
use std::path::PathBuf;
|
||||
|
||||
use run_make_support::{fs as rfs, rustc};
|
||||
use run_make_support::{rfs, rustc};
|
||||
|
||||
struct PrintCfg {
|
||||
target: &'static str,
|
||||
|
@ -4,7 +4,7 @@
|
||||
use std::ffi::OsString;
|
||||
use std::path::PathBuf;
|
||||
|
||||
use run_make_support::{fs as rfs, rustc, target};
|
||||
use run_make_support::{rfs, rustc, target};
|
||||
|
||||
struct Option<'a> {
|
||||
target: &'a str,
|
||||
|
@ -4,7 +4,7 @@
|
||||
// See https://github.com/rust-lang/rust/pull/85344
|
||||
|
||||
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() {
|
||||
let mut out_simple = rustc();
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
use gimli::{AttributeValue, EndianRcSlice, Reader, RunTimeEndian};
|
||||
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::path::PathBuf;
|
||||
use std::rc::Rc;
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
//@ 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;
|
||||
|
||||
fn compile(output_file: &str, emit: Option<&str>) {
|
||||
|
@ -5,7 +5,7 @@
|
||||
// the renamed library.
|
||||
// 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;
|
||||
|
||||
fn main() {
|
||||
|
@ -8,7 +8,7 @@
|
||||
//@ ignore-cross-compile
|
||||
// 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() {
|
||||
rustc().input("m1.rs").run();
|
||||
|
@ -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;
|
||||
|
||||
pub fn scrape(extra_args: &[&str]) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
use run_make_support::{fs as rfs, rustdoc};
|
||||
use run_make_support::{rfs, rustdoc};
|
||||
use std::iter;
|
||||
use std::path::Path;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
// 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;
|
||||
|
||||
fn main() {
|
||||
|
@ -1,4 +1,4 @@
|
||||
use run_make_support::fs as rfs;
|
||||
use run_make_support::rfs;
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
use run_make_support::{assert_dirs_are_equal, rustdoc};
|
||||
|
@ -5,7 +5,7 @@
|
||||
// See https://github.com/rust-lang/rust/pull/16367
|
||||
|
||||
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,
|
||||
};
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
// See https://github.com/rust-lang/rust/pull/16367
|
||||
|
||||
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,
|
||||
};
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
// See https://github.com/rust-lang/rust/pull/16367
|
||||
|
||||
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,
|
||||
};
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
//@ ignore-windows
|
||||
// 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() {
|
||||
rfs::create_file("<leading-lt");
|
||||
|
@ -11,7 +11,7 @@
|
||||
//@ ignore-cross-compile
|
||||
//@ needs-symlink
|
||||
|
||||
use run_make_support::{cwd, fs as rfs, rustc};
|
||||
use run_make_support::{cwd, rfs, rustc};
|
||||
|
||||
fn main() {
|
||||
rustc().input("foo.rs").run();
|
||||
|
@ -8,7 +8,7 @@
|
||||
//@ ignore-cross-compile
|
||||
//@ needs-symlink
|
||||
|
||||
use run_make_support::{dynamic_lib_name, fs as rfs, rustc};
|
||||
use run_make_support::{dynamic_lib_name, rfs, rustc};
|
||||
|
||||
fn main() {
|
||||
rustc().input("foo.rs").arg("-Cprefer-dynamic").run();
|
||||
|
@ -8,7 +8,7 @@
|
||||
//@ ignore-cross-compile
|
||||
//@ needs-symlink
|
||||
|
||||
use run_make_support::{cwd, fs as rfs, rustc};
|
||||
use run_make_support::{cwd, rfs, rustc};
|
||||
|
||||
fn main() {
|
||||
rustc().input("foo.rs").crate_type("rlib").output("foo.xxx").run();
|
||||
|
@ -5,7 +5,7 @@
|
||||
// using them correctly, or fails with the right error message when using them improperly.
|
||||
// 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() {
|
||||
rustc().input("foo.rs").target("my-awesome-platform.json").crate_type("lib").emit("asm").run();
|
||||
|
@ -4,7 +4,7 @@
|
||||
// output successfully added the file as a dependency.
|
||||
// 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() {
|
||||
rustc().input("macro_def.rs").run();
|
||||
|
@ -8,7 +8,7 @@
|
||||
// Reason: the binary is executed
|
||||
//@ 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() {
|
||||
// Generate the profile-guided-optimization (PGO) profiles
|
||||
|
@ -1,6 +1,6 @@
|
||||
//@ ignore-cross-compile
|
||||
|
||||
use run_make_support::fs as rfs;
|
||||
use run_make_support::rfs;
|
||||
use run_make_support::{assert_contains, run, rustc};
|
||||
|
||||
fn main() {
|
||||
|
@ -1,6 +1,6 @@
|
||||
//@ only-wasm32-wasip1
|
||||
|
||||
use run_make_support::{fs as rfs, rustc, wasmparser};
|
||||
use run_make_support::{rfs, rustc, wasmparser};
|
||||
use std::collections::HashMap;
|
||||
|
||||
fn main() {
|
||||
|
@ -1,6 +1,6 @@
|
||||
//@ 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::path::Path;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
//@ 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::path::Path;
|
||||
use wasmparser::ExternalKind::*;
|
||||
|
@ -1,6 +1,6 @@
|
||||
//@ only-wasm32-wasip1
|
||||
|
||||
use run_make_support::{fs as rfs, rustc, wasmparser};
|
||||
use run_make_support::{rfs, rustc, wasmparser};
|
||||
use std::collections::HashMap;
|
||||
use wasmparser::TypeRef::Func;
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
//@ only-wasm32-wasip1
|
||||
#![deny(warnings)]
|
||||
|
||||
use run_make_support::{fs as rfs, rustc};
|
||||
use run_make_support::{rfs, rustc};
|
||||
|
||||
fn main() {
|
||||
test("a");
|
||||
|
@ -1,6 +1,6 @@
|
||||
//@ only-wasm32-wasip1
|
||||
|
||||
use run_make_support::{fs as rfs, rustc, wasmparser};
|
||||
use run_make_support::{rfs, rustc, wasmparser};
|
||||
use std::collections::HashMap;
|
||||
|
||||
fn main() {
|
||||
|
@ -1,7 +1,7 @@
|
||||
//@ only-wasm32-wasip1
|
||||
#![deny(warnings)]
|
||||
|
||||
use run_make_support::{fs as rfs, rustc};
|
||||
use run_make_support::{rfs, rustc};
|
||||
|
||||
fn main() {
|
||||
rustc().input("foo.rs").target("wasm32-wasip1").arg("-Clto").opt().run();
|
||||
|
@ -1,6 +1,6 @@
|
||||
//@ 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::path::Path;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
//@ only-wasm32-wasip1
|
||||
|
||||
use run_make_support::{fs as rfs, rustc, wasmparser};
|
||||
use run_make_support::{rfs, rustc, wasmparser};
|
||||
use std::path::Path;
|
||||
|
||||
fn main() {
|
||||
|
@ -1,6 +1,6 @@
|
||||
//@ only-wasm32-wasip1
|
||||
|
||||
use run_make_support::{fs as rfs, rustc, wasmparser};
|
||||
use run_make_support::{rfs, rustc, wasmparser};
|
||||
use std::path::Path;
|
||||
|
||||
fn main() {
|
||||
|
@ -1,5 +1,5 @@
|
||||
use run_make_support::fs as rfs;
|
||||
use run_make_support::regex::Regex;
|
||||
use run_make_support::rfs;
|
||||
use run_make_support::{cwd, rustc};
|
||||
|
||||
fn main() {
|
||||
|
@ -3,7 +3,7 @@
|
||||
// Tests that WS2_32.dll is not unnecessarily linked, see issue #85441
|
||||
|
||||
use run_make_support::object::{self, read::Object};
|
||||
use run_make_support::{fs as rfs, rustc};
|
||||
use run_make_support::{rfs, rustc};
|
||||
|
||||
fn main() {
|
||||
rustc().input("empty.rs").run();
|
||||
|
Loading…
Reference in New Issue
Block a user