Skip to content

Commit 09aa772

Browse files
committed
Cleanup: Rid the rmake test runners of extern crate run_make_support;
1 parent 80451a4 commit 09aa772

File tree

31 files changed

+0
-55
lines changed

31 files changed

+0
-55
lines changed

tests/run-make/CURRENT_RUSTC_VERSION/rmake.rs

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
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-
extern crate run_make_support;
7-
86
use std::path::PathBuf;
97

108
use run_make_support::{rustc, aux_build};

tests/run-make/a-b-a-linker-guard/rmake.rs

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
// Test that if we build `b` against a version of `a` that has one set of types, it will not run
44
// with a dylib that has a different set of types.
55

6-
extern crate run_make_support;
7-
86
use run_make_support::{run, run_fail, rustc};
97

108
fn main() {

tests/run-make/arguments-non-c-like-enum/rmake.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
//! Check that non-trivial `repr(C)` enum in Rust has valid C layout.
22
//@ ignore-cross-compile
33

4-
extern crate run_make_support;
5-
64
use run_make_support::{cc, extra_c_flags, extra_cxx_flags, run, rustc, static_lib};
75

86
pub fn main() {

tests/run-make/artifact-incr-cache-no-obj/rmake.rs

-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
//
66
// Fixes: rust-lang/rust#123234
77

8-
extern crate run_make_support;
9-
108
use run_make_support::{rustc, tmp_dir};
119

1210
fn main() {

tests/run-make/artifact-incr-cache/rmake.rs

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
// Also see discussion at
88
// <https://internals.rust-lang.org/t/interaction-between-incremental-compilation-and-emit/20551>
99

10-
extern crate run_make_support;
11-
1210
use run_make_support::{rustc, tmp_dir};
1311

1412
fn main() {

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

-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414

1515
#![deny(warnings)]
1616

17-
extern crate run_make_support;
18-
1917
use run_make_support::object;
2018
use run_make_support::object::read::archive::ArchiveFile;
2119
use run_make_support::object::read::Object;

tests/run-make/core-no-fp-fmt-parse/rmake.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// This test checks that the core library of Rust can be compiled without enabling
22
// support for formatting and parsing floating-point numbers.
33

4-
extern crate run_make_support;
5-
64
use run_make_support::rustc;
75
use std::path::PathBuf;
86

tests/run-make/cross-lang-lto-riscv-abi/rmake.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
//! which requires extra `target-abi` metadata to be emitted.
33
//@ needs-matching-clang
44
//@ needs-llvm-components riscv
5-
extern crate run_make_support;
65

76
use run_make_support::{bin_name, clang, llvm_readobj, rustc, tmp_dir};
87
use std::{

tests/run-make/exit-code/rmake.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// Test that we exit with the correct exit code for successful / unsuccessful / ICE compilations
22

3-
extern crate run_make_support;
4-
53
use run_make_support::{rustc, rustdoc, tmp_dir};
64

75
fn main() {

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

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

33
#[cfg(unix)]
44
extern crate libc;
5-
extern crate run_make_support;
65

76
use run_make_support::{aux_build, tmp_dir};
87
use std::fs;

tests/run-make/no-input-file/rmake.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
extern crate run_make_support;
2-
31
use run_make_support::{diff, rustc};
42

53
fn main() {

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

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
extern crate run_make_support;
2-
31
use run_make_support::rustc;
42

53
fn main() {

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

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
extern crate run_make_support;
2-
31
use run_make_support::{rustc, tmp_dir};
42

53
fn main() {

tests/run-make/print-cfg/rmake.rs

-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
//!
66
//! It also checks that some targets have the correct set cfgs.
77
8-
extern crate run_make_support;
9-
108
use std::collections::HashSet;
119
use std::ffi::OsString;
1210
use std::io::BufRead;

tests/run-make/print-native-static-libs/rmake.rs

-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
//@ ignore-cross-compile
1313
//@ ignore-wasm
1414

15-
extern crate run_make_support;
16-
1715
use std::io::BufRead;
1816

1917
use run_make_support::{rustc, is_msvc};

tests/run-make/print-to-output/rmake.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
//! This checks the output of some `--print` options when
22
//! output to a file (instead of stdout)
33
4-
extern crate run_make_support;
5-
64
use std::ffi::OsString;
75

86
use run_make_support::{rustc, target, tmp_dir};

tests/run-make/repr128-dwarf/rmake.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
//@ ignore-windows
22
// This test should be replaced with one in tests/debuginfo once GDB or LLDB support 128-bit enums.
33

4-
extern crate run_make_support;
5-
64
use gimli::{AttributeValue, Dwarf, EndianRcSlice, Reader, RunTimeEndian};
75
use object::{Object, ObjectSection};
86
use run_make_support::{gimli, object, rustc, tmp_dir};

tests/run-make/rust-lld-custom-target/rmake.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
//@ needs-rust-lld
99
//@ only-x86_64-unknown-linux-gnu
1010

11-
extern crate run_make_support;
12-
1311
use run_make_support::regex::Regex;
1412
use run_make_support::rustc;
1513
use std::process::Output;

tests/run-make/rust-lld/rmake.rs

-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
//@ ignore-msvc
66
//@ ignore-s390x lld does not yet support s390x as target
77

8-
extern crate run_make_support;
9-
108
use run_make_support::regex::Regex;
119
use run_make_support::rustc;
1210
use std::process::Output;

tests/run-make/rustdoc-test-args/rmake.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
extern crate run_make_support;
2-
31
use run_make_support::{rustdoc, tmp_dir};
42
use std::path::Path;
53
use std::{fs, iter};

tests/run-make/wasm-abi/rmake.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
//@ only-wasm32-wasip1
22
//@ needs-wasmtime
33

4-
extern crate run_make_support;
5-
64
use run_make_support::{rustc, tmp_dir};
75
use std::path::Path;
86
use std::process::Command;

tests/run-make/wasm-custom-section/rmake.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//@ only-wasm32-wasip1
2-
extern crate run_make_support;
32

43
use run_make_support::{rustc, tmp_dir, wasmparser};
54
use std::collections::HashMap;

tests/run-make/wasm-custom-sections-opt/rmake.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//@ only-wasm32-wasip1
2-
extern crate run_make_support;
32

43
use run_make_support::{tmp_dir, wasmparser, rustc};
54
use std::collections::HashMap;

tests/run-make/wasm-export-all-symbols/rmake.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//@ only-wasm32-wasip1
22

3-
extern crate run_make_support;
4-
53
use run_make_support::{tmp_dir, wasmparser, rustc};
64
use std::collections::HashMap;
75
use std::path::Path;

tests/run-make/wasm-import-module/rmake.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//@ only-wasm32-wasip1
22

3-
extern crate run_make_support;
4-
53
use run_make_support::{tmp_dir, wasmparser, rustc};
64
use std::collections::HashMap;
75
use wasmparser::TypeRef::Func;

tests/run-make/wasm-panic-small/rmake.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
//@ only-wasm32-wasip1
22
#![deny(warnings)]
33

4-
extern crate run_make_support;
5-
64
use run_make_support::{rustc, tmp_dir};
75

86
fn main() {

tests/run-make/wasm-spurious-import/rmake.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//@ only-wasm32-wasip1
22

3-
extern crate run_make_support;
4-
53
use run_make_support::{rustc, tmp_dir, wasmparser};
64
use std::collections::HashMap;
75

tests/run-make/wasm-stringify-ints-small/rmake.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
//@ only-wasm32-wasip1
22
#![deny(warnings)]
33

4-
extern crate run_make_support;
5-
64
use run_make_support::{rustc, tmp_dir};
75

86
fn main() {

tests/run-make/wasm-symbols-different-module/rmake.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//@ only-wasm32-wasip1
2-
extern crate run_make_support;
32

43
use run_make_support::{rustc, tmp_dir, wasmparser};
54
use std::collections::{HashMap, HashSet};

tests/run-make/wasm-symbols-not-exported/rmake.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//@ only-wasm32-wasip1
2-
extern crate run_make_support;
32

43
use run_make_support::{rustc, tmp_dir, wasmparser};
54
use std::path::Path;

tests/run-make/wasm-symbols-not-imported/rmake.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//@ only-wasm32-wasip1
2-
extern crate run_make_support;
32

43
use run_make_support::{rustc, tmp_dir, wasmparser};
54
use std::path::Path;

0 commit comments

Comments
 (0)