remove unused imports from rmake tests
This commit is contained in:
parent
19469cb536
commit
141d9dc3a5
@ -3,8 +3,6 @@
|
||||
// Check that the `CURRENT_RUSTC_VERSION` placeholder is correctly replaced by the current
|
||||
// `rustc` version and the `since` property in feature stability gating is properly respected.
|
||||
|
||||
use std::path::PathBuf;
|
||||
|
||||
use run_make_support::{aux_build, rfs, rustc, source_root};
|
||||
|
||||
fn main() {
|
||||
|
@ -4,8 +4,6 @@
|
||||
use run_make_support::{cc, extra_c_flags, extra_cxx_flags, run, rustc, static_lib_name};
|
||||
|
||||
pub fn main() {
|
||||
use std::path::Path;
|
||||
|
||||
rustc().input("nonclike.rs").crate_type("staticlib").run();
|
||||
cc().input("test.c")
|
||||
.input(static_lib_name("nonclike"))
|
||||
|
@ -3,8 +3,6 @@
|
||||
|
||||
//@ ignore-cross-compile
|
||||
|
||||
use std::fs;
|
||||
|
||||
use run_make_support::rfs::remove_file;
|
||||
use run_make_support::{cc, extra_c_flags, run, rustc, static_lib_name};
|
||||
|
||||
|
@ -7,9 +7,7 @@
|
||||
// FIXME(jieyouxu): check cross-compile setup
|
||||
//@ ignore-cross-compile
|
||||
|
||||
use std::path::PathBuf;
|
||||
|
||||
use run_make_support::{cwd, env_var, llvm_readobj, rfs, run_in_tmpdir, rustc};
|
||||
use run_make_support::{cwd, env_var, llvm_readobj, rfs, rustc};
|
||||
|
||||
fn main() {
|
||||
let target = env_var("TARGET");
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
// FIXME: This test isn't comprehensive and isn't covering all possible combinations.
|
||||
|
||||
use run_make_support::{assert_contains, cmd, llvm_readobj, run_in_tmpdir, rustc};
|
||||
use run_make_support::{assert_contains, llvm_readobj, run_in_tmpdir, rustc};
|
||||
|
||||
fn check_compression(compression: &str, to_find: &str) {
|
||||
run_in_tmpdir(|| {
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
//@ needs-unwind
|
||||
|
||||
use run_make_support::{cwd, diff, rustc};
|
||||
use run_make_support::{diff, rustc};
|
||||
|
||||
fn main() {
|
||||
rustc().input("main.rs").emit("mir").output("dump-actual.mir").run();
|
||||
|
@ -2,8 +2,7 @@
|
||||
//@ ignore-wasm32
|
||||
//@ ignore-wasm64
|
||||
|
||||
use run_make_support::rfs::copy;
|
||||
use run_make_support::{assert_contains, rust_lib_name, rustc};
|
||||
use run_make_support::{rust_lib_name, rustc};
|
||||
|
||||
fn main() {
|
||||
rustc().input("multiple-dep-versions-1.rs").run();
|
||||
|
@ -4,7 +4,6 @@
|
||||
//@ only-linux
|
||||
//@ ignore-cross-compile
|
||||
|
||||
use run_make_support::regex::Regex;
|
||||
use run_make_support::{cmd, run_in_tmpdir, rustc};
|
||||
|
||||
fn main() {
|
||||
|
@ -1,6 +1,6 @@
|
||||
//@ ignore-cross-compile
|
||||
|
||||
use run_make_support::{cwd, run, rustc};
|
||||
use run_make_support::{run, rustc};
|
||||
|
||||
// Attempt to build this dependency tree:
|
||||
//
|
||||
|
@ -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, rfs, rust_lib_name, rustc};
|
||||
use run_make_support::{bare_rustc, rust_lib_name, rustc};
|
||||
|
||||
fn main() {
|
||||
rustc().crate_name("a").crate_type("rlib").input("a.rs").arg("--verbose").run();
|
||||
|
@ -14,7 +14,7 @@
|
||||
//@ ignore-nvptx64-nvidia-cuda
|
||||
// FIXME: can't find crate for 'std'
|
||||
|
||||
use run_make_support::{rfs, rust_lib_name, rustc};
|
||||
use run_make_support::{rfs, rustc};
|
||||
|
||||
fn main() {
|
||||
rfs::create_dir("incr");
|
||||
|
@ -2,8 +2,6 @@
|
||||
// (in this case, foo.py and foo.natvis) are picked up when compiling incrementally.
|
||||
// See https://github.com/rust-lang/rust/pull/111641
|
||||
|
||||
use std::io::Read;
|
||||
|
||||
use run_make_support::{invalid_utf8_contains, invalid_utf8_not_contains, rfs, rustc};
|
||||
|
||||
fn main() {
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
//@ ignore-cross-compile
|
||||
|
||||
use run_make_support::{rfs, run, rust_lib_name, rustc, test_while_readonly};
|
||||
use run_make_support::{run, rust_lib_name, rustc, test_while_readonly};
|
||||
|
||||
fn main() {
|
||||
rustc().input("lib.rs").run();
|
||||
|
@ -1,4 +1,4 @@
|
||||
use run_make_support::{cwd, path, rustc};
|
||||
use run_make_support::{path, rustc};
|
||||
|
||||
fn main() {
|
||||
rustc().input("foo.rs").emit("asm,llvm-ir").output("out").run();
|
||||
|
@ -3,7 +3,7 @@
|
||||
use run_make_support::object::read::{File, Object, Symbol};
|
||||
use run_make_support::object::ObjectSymbol;
|
||||
use run_make_support::targets::is_windows;
|
||||
use run_make_support::{dynamic_lib_name, env_var, rfs, rustc};
|
||||
use run_make_support::{dynamic_lib_name, rfs, rustc};
|
||||
|
||||
fn main() {
|
||||
let rdylib_name = dynamic_lib_name("a_rust_dylib");
|
||||
|
@ -4,7 +4,6 @@
|
||||
|
||||
use std::collections::HashSet;
|
||||
use std::iter::FromIterator;
|
||||
use std::ops::Deref;
|
||||
|
||||
use run_make_support::rustc;
|
||||
|
||||
|
@ -12,8 +12,6 @@
|
||||
//@ ignore-cross-compile
|
||||
//@ ignore-wasm
|
||||
|
||||
use std::io::BufRead;
|
||||
|
||||
use run_make_support::{is_msvc, rustc};
|
||||
|
||||
fn main() {
|
||||
|
@ -11,9 +11,7 @@
|
||||
//@ ignore-cross-compile
|
||||
// Reason: the compiled binary is executed
|
||||
|
||||
use run_make_support::{
|
||||
build_native_dynamic_lib, build_native_static_lib, cwd, is_msvc, rfs, run, rustc,
|
||||
};
|
||||
use run_make_support::{build_native_dynamic_lib, build_native_static_lib, run, rustc};
|
||||
|
||||
fn main() {
|
||||
build_native_dynamic_lib("foo");
|
||||
|
@ -13,7 +13,7 @@
|
||||
// 2. When the sysroot gets copied, some symlinks must be re-created,
|
||||
// which is a privileged action on Windows.
|
||||
|
||||
use run_make_support::{bin_name, rfs, rust_lib_name, rustc};
|
||||
use run_make_support::{rfs, rust_lib_name, rustc};
|
||||
|
||||
fn main() {
|
||||
// test 1: fat lto
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
use std::path::Path;
|
||||
|
||||
use run_make_support::{bin_name, rfs, rustc};
|
||||
use run_make_support::{bin_name, rustc};
|
||||
|
||||
fn compile(output_file: &str, emit: Option<&str>) {
|
||||
let mut rustc = rustc();
|
||||
|
@ -6,7 +6,7 @@
|
||||
// See https://github.com/rust-lang/rust/pull/105601
|
||||
|
||||
use run_make_support::{
|
||||
build_native_static_lib, is_msvc, llvm_ar, regex, rfs, rust_lib_name, rustc, static_lib_name,
|
||||
build_native_static_lib, llvm_ar, regex, rfs, rust_lib_name, rustc, static_lib_name,
|
||||
};
|
||||
|
||||
//@ ignore-cross-compile
|
||||
|
@ -3,7 +3,7 @@
|
||||
//! when returning from the closure.
|
||||
|
||||
use std::fs;
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::path::PathBuf;
|
||||
|
||||
use run_make_support::{cwd, run_in_tmpdir};
|
||||
|
||||
|
@ -6,8 +6,6 @@
|
||||
//@ ignore-stable
|
||||
//@ only-x86_64-unknown-linux-gnu
|
||||
|
||||
use std::process::Output;
|
||||
|
||||
use run_make_support::regex::Regex;
|
||||
use run_make_support::rustc;
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
// FIXME: This test isn't comprehensive and isn't covering all possible combinations.
|
||||
|
||||
use run_make_support::{assert_contains, cmd, llvm_readobj, run_in_tmpdir, rustc};
|
||||
use run_make_support::{assert_contains, llvm_readobj, run_in_tmpdir, rustc};
|
||||
|
||||
fn check_compression(compression: &str, to_find: &str) {
|
||||
run_in_tmpdir(|| {
|
||||
|
@ -8,8 +8,6 @@
|
||||
//@ needs-rust-lld
|
||||
//@ only-x86_64-unknown-linux-gnu
|
||||
|
||||
use std::process::Output;
|
||||
|
||||
use run_make_support::regex::Regex;
|
||||
use run_make_support::rustc;
|
||||
|
||||
|
@ -4,8 +4,6 @@
|
||||
//@ needs-rust-lld
|
||||
//@ ignore-s390x lld does not yet support s390x as target
|
||||
|
||||
use std::process::Output;
|
||||
|
||||
use run_make_support::regex::Regex;
|
||||
use run_make_support::{is_msvc, rustc};
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
use std::path::Path;
|
||||
|
||||
use run_make_support::{htmldocck, rfs, rustc, rustdoc, source_root};
|
||||
use run_make_support::{htmldocck, rfs, rustc, rustdoc};
|
||||
|
||||
pub fn scrape(extra_args: &[&str]) {
|
||||
let out_dir = Path::new("rustdoc");
|
||||
|
@ -4,10 +4,7 @@
|
||||
// created for each source module (see `rustc_const_eval::monomorphize::partitioning`).
|
||||
// See https://github.com/rust-lang/rust/pull/16367
|
||||
|
||||
use run_make_support::{
|
||||
count_regex_matches_in_files_with_extension, cwd, has_extension, regex, rfs, rustc,
|
||||
shallow_find_files,
|
||||
};
|
||||
use run_make_support::{count_regex_matches_in_files_with_extension, regex, rustc};
|
||||
|
||||
fn main() {
|
||||
rustc().input("cci_lib.rs").run();
|
||||
|
@ -5,10 +5,7 @@
|
||||
// in only one compilation unit.
|
||||
// See https://github.com/rust-lang/rust/pull/16367
|
||||
|
||||
use run_make_support::{
|
||||
count_regex_matches_in_files_with_extension, cwd, has_extension, regex, rfs, rustc,
|
||||
shallow_find_files,
|
||||
};
|
||||
use run_make_support::{count_regex_matches_in_files_with_extension, regex, rustc};
|
||||
|
||||
fn main() {
|
||||
rustc().input("foo.rs").emit("llvm-ir").codegen_units(3).arg("-Zinline-in-all-cgus").run();
|
||||
|
@ -3,10 +3,7 @@
|
||||
// wind up in three different compilation units.
|
||||
// See https://github.com/rust-lang/rust/pull/16367
|
||||
|
||||
use run_make_support::{
|
||||
count_regex_matches_in_files_with_extension, cwd, has_extension, regex, rfs, rustc,
|
||||
shallow_find_files,
|
||||
};
|
||||
use run_make_support::{count_regex_matches_in_files_with_extension, regex, rustc};
|
||||
|
||||
fn main() {
|
||||
rustc().input("foo.rs").emit("llvm-ir").codegen_units(3).run();
|
||||
|
Loading…
Reference in New Issue
Block a user