Skip to content

Commit efaf3eb

Browse files
committed
ignore run-make tests that need std on no_std targets
In particular, anything that includes `none` in the target tripple, and `nvptx64-nvidia-cuda`
1 parent fd50e10 commit efaf3eb

File tree

108 files changed

+184
-21
lines changed

Some content is hidden

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

108 files changed

+184
-21
lines changed

tests/run-make/CURRENT_RUSTC_VERSION/rmake.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@ needs-target-std
12
// ignore-tidy-linelength
23

34
// Check that the `CURRENT_RUSTC_VERSION` placeholder is correctly replaced by the current

tests/run-make/allow-warnings-cmdline-stability/rmake.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@ needs-target-std
12
// Test that `-Awarnings` suppresses warnings for unstable APIs.
23

34
use run_make_support::rustc;

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// emitting an object file is not necessary if user didn't ask for one
24
//
35
// This test is similar to run-make/artifact-incr-cache but it doesn't

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// rustc should be able to emit required files (asm, llvm-*, etc) during incremental
24
// compilation on the first pass by running the code gen as well as on subsequent runs -
35
// extracting them from the cache

tests/run-make/bin-emit-no-symbols/rmake.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// When setting the crate type as a "bin" (in app.rs),
24
// this could cause a bug where some symbols would not be
35
// emitted in the object files. This has been fixed, and

tests/run-make/box-struct-no-segfault/rmake.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// The crate "foo" tied to this test executes a very specific function,
24
// which involves boxing an instance of the struct Foo. However,
35
// this once caused a segmentation fault in cargo release builds due to an LLVM

tests/run-make/checksum-freshness/rmake.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@ needs-target-std
12
use run_make_support::{rfs, rustc};
23

34
fn main() {

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// This test checks that extern crate declarations in Cargo without a corresponding declaration
24
// in the manifest of a dependency are NOT allowed. The last rustc call does it anyways, which
35
// should result in a compilation failure.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// Since #19941, rustc can accept specifications on its library search paths.
24
// This test runs Rust programs with varied library dependencies, expecting them
35
// to succeed or fail depending on the situation.

tests/run-make/const-trait-stable-toolchain/rmake.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// Test output of const super trait errors in both stable and nightly.
24
// We don't want to provide suggestions on stable that only make sense in nightly.
35

tests/run-make/crate-circular-deps-link/rmake.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// Test that previously triggered a linker failure with root cause
24
// similar to one found in the issue #69368.
35
//

tests/run-make/cross-lang-lto-upstream-rlibs/rmake.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// When using the flag -C linker-plugin-lto, static libraries could lose their upstream object
24
// files during compilation. This bug was fixed in #53031, and this test compiles a staticlib
35
// dependent on upstream, checking that the upstream object file still exists after no LTO and

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// This test checks that the object files we generate are actually
24
// LLVM bitcode files (as used by linker LTO plugins) when compiling with
35
// -Clinker-plugin-lto.

tests/run-make/debugger-visualizer-dep-info/rmake.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// This test checks that files referenced via #[debugger_visualizer] are
24
// included in `--emit dep-info` output.
35
// See https://github.com/rust-lang/rust/pull/111641

tests/run-make/dep-info/rmake.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// This is a simple smoke test for rustc's `--emit dep-info` feature. It prints out
24
// information about dependencies in a Makefile-compatible format, as a `.d` file.
35
// Note that this test does not check that the `.d` file is Makefile-compatible.

tests/run-make/diagnostics-traits-from-duplicate-crates/rmake.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// Non-regression test for issue #132920 where multiple versions of the same crate are present in
24
// the dependency graph, and an unexpected error in a dependent crate caused an ICE in the
35
// unsatisfied bounds diagnostics for traits present in multiple crate versions.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@ needs-target-std
12
use std::path::Path;
23

34
use run_make_support::{cwd, diff, rustc, rustdoc};

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// Tests behavior of rustdoc `--test-runtool`.
24

35
use std::path::PathBuf;

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// A flag named dump-mono-stats was added to the compiler in 2022, which
24
// collects stats on instantiation of items and their associated costs.
35
// This test checks that the output stat file exists, and that it contains

tests/run-make/duplicate-output-flavors/rmake.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@ needs-target-std
12
use run_make_support::rustc;
23

34
fn main() {

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// Tests the -Zembed-metadata compiler flag.
24
// Tracking issue: https://github.com/rust-lang/rust/issues/139165
35

tests/run-make/embed-source-dwarf/rmake.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@ needs-target-std
12
//@ ignore-windows
23
//@ ignore-apple
34

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@ needs-target-std
12
use std::path::Path;
23

34
use run_make_support::{rfs, rustc};

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// Specifying how rustc outputs a file can be done in different ways, such as
24
// the output flag or the KIND=NAME syntax. However, some of these methods used
35
// to result in different hashes on output files even though they yielded the

tests/run-make/emit-stack-sizes/rmake.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
// this diagnostics information should be located.
77
// See https://github.com/rust-lang/rust/pull/51946
88

9+
//@ needs-target-std
910
//@ ignore-windows
1011
//@ ignore-apple
1112
// Reason: this feature only works when the output object format is ELF.

tests/run-make/emit-to-stdout/rmake.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@ needs-target-std
12
//! If `-o -` or `--emit KIND=-` is provided, output should be written to stdout
23
//! instead. Binary output (`obj`, `llvm-bc`, `link` and `metadata`)
34
//! being written this way will result in an error if stdout is a tty.

tests/run-make/env-dep-info/rmake.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// Inside dep-info emit files, #71858 made it so all accessed environment
24
// variables are usefully printed. This test checks that this feature works
35
// as intended by checking if the environment variables used in compilation

tests/run-make/error-found-staticlib-instead-crate/rmake.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// When rustc is looking for a crate but is given a staticlib instead,
24
// the error message should be helpful and indicate precisely the cause
35
// of the compilation failure.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// Test that we exit with the correct exit code for successful / unsuccessful / ICE compilations
24

35
use run_make_support::{rustc, rustdoc};
Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1+
//@ needs-target-std
12
use run_make_support::rustc;
23

34
fn main() {
4-
rustc()
5-
.env("RUSTC_FORCE_RUSTC_VERSION", "1")
6-
.input("libr.rs")
7-
.run();
8-
rustc()
9-
.env("RUSTC_FORCE_RUSTC_VERSION", "2")
10-
.input("app.rs")
11-
.run();
5+
rustc().env("RUSTC_FORCE_RUSTC_VERSION", "1").input("libr.rs").run();
6+
rustc().env("RUSTC_FORCE_RUSTC_VERSION", "2").input("app.rs").run();
127
}

tests/run-make/export/extern-opt/rmake.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
use run_make_support::{rustc, dynamic_lib_name};
1+
//@ needs-target-std
2+
use run_make_support::{dynamic_lib_name, rustc};
23

34
fn main() {
4-
rustc()
5-
.env("RUSTC_FORCE_RUSTC_VERSION", "1")
6-
.input("libr.rs")
7-
.run();
5+
rustc().env("RUSTC_FORCE_RUSTC_VERSION", "1").input("libr.rs").run();
86

97
rustc()
108
.env("RUSTC_FORCE_RUSTC_VERSION", "2")

tests/run-make/export/simple/rmake.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1+
//@ needs-target-std
12
use run_make_support::rustc;
23

34
fn main() {
4-
rustc()
5-
.env("RUSTC_FORCE_RUSTC_VERSION", "1")
6-
.input("libr.rs")
7-
.run();
8-
rustc()
9-
.env("RUSTC_FORCE_RUSTC_VERSION", "2")
10-
.input("app.rs")
11-
.run();
5+
rustc().env("RUSTC_FORCE_RUSTC_VERSION", "1").input("libr.rs").run();
6+
rustc().env("RUSTC_FORCE_RUSTC_VERSION", "2").input("app.rs").run();
127
}

tests/run-make/extern-diff-internal-name/rmake.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// In the following scenario:
24
// 1. The crate foo, is referenced multiple times
35
// 2. --extern foo=./path/to/libbar.rlib is specified to rustc

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// The --extern flag can override the default crate search of
24
// the compiler and directly fetch a given path. There are a few rules
35
// to follow: for example, there can't be more than one rlib, the crates must

tests/run-make/extern-flag-rename-transitive/rmake.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// In this test, baz.rs is looking for an extern crate "a" which
24
// does not exist, and can only run through the --extern rustc flag
35
// defining that the "a" crate is in fact just "foo". This test

tests/run-make/extern-multiple-copies/rmake.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// In this test, the rust library foo1 exists in two different locations, but only one
24
// is required by the --extern flag. This test checks that the copy is ignored (as --extern
35
// demands fetching only the original instance of foo1) and that no error is emitted, resulting

tests/run-make/extern-multiple-copies2/rmake.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// Almost identical to `extern-multiple-copies`, but with a variation in the --extern calls
24
// and the addition of #[macro_use] in the rust code files, which used to break --extern
35
// until #33625.

tests/run-make/ice-static-mir/rmake.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// Trying to access mid-level internal representation (MIR) in statics
24
// used to cause an internal compiler error (ICE), now handled as a proper
35
// error since #100211. This test checks that the correct error is printed

tests/run-make/include-all-symbols-linking/rmake.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
// See https://github.com/rust-lang/rust/pull/95604
88
// See https://github.com/rust-lang/rust/issues/47384
99

10+
//@ needs-target-std
1011
//@ ignore-wasm differences in object file formats causes errors in the llvm_objdump step.
1112
//@ ignore-windows differences in object file formats causes errors in the llvm_objdump step.
1213

tests/run-make/include-bytes-deps/rmake.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// include_bytes! and include_str! in `main.rs`
24
// should register the included file as of #24423,
35
// and this test checks that this is still the case.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// This test ensures that changes to files referenced via #[debugger_visualizer]
24
// (in this case, foo.py and foo.natvis) are picked up when compiling incrementally.
35
// See https://github.com/rust-lang/rust/pull/111641

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@ needs-target-std
12
use std::ffi::OsStr;
23

34
use run_make_support::regex::Regex;

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// When a fake library was given to the compiler, it would
24
// result in an obscure and unhelpful error message. This test
35
// creates a false "foo" dylib, and checks that the standard error

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// If the static library provided is not valid (in this test,
24
// created as an empty file),
35
// rustc should print a normal error message and not throw

tests/run-make/invalid-symlink-search-path/rmake.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
//
66
// See https://github.com/rust-lang/rust/issues/26006
77

8+
//@ needs-target-std
89
//@ needs-symlink
910
//Reason: symlink requires elevated permission in Windows
1011

tests/run-make/invalid-tmpdir-env-var/rmake.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// When the TMP (on Windows) or TMPDIR (on Unix) variable is set to an invalid
24
// or non-existing directory, this used to cause an internal compiler error (ICE). After the
35
// addition of proper error handling in #28430, this test checks that the expected message is

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@ needs-target-std
12
#[cfg(unix)]
23
use std::os::unix::fs::PermissionsExt;
34
use std::path::Path;

tests/run-make/issue-125484-used-dependencies/rmake.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// Non-regression test for issues #125474, #125484, #125646, with the repro taken from #125484. Some
24
// queries use "used dependencies" while others use "speculatively loaded dependencies", and an
35
// indexing ICE appeared in some cases when these were unexpectedly used in the same context.

tests/run-make/json-error-no-offset/rmake.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// The byte positions in json format error logging used to have a small, difficult
24
// to predict offset. This was changed to be the top of the file every time in #42973,
35
// and this test checks that the measurements appearing in the standard error are correct.

tests/run-make/lib-trait-for-trait-no-ice/rmake.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// Inside a library, implementing a trait for another trait
24
// with a lifetime used to cause an internal compiler error (ICE).
35
// This test checks that this bug does not make a resurgence -

tests/run-make/link-arg/rmake.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// In 2016, the rustc flag "-C link-arg" was introduced - it can be repeatedly used
24
// to add single arguments to the linker. This test passes 2 arguments to the linker using it,
35
// then checks that the compiler's output contains the arguments passed to it.

tests/run-make/link-args-order/rmake.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// Passing linker arguments to the compiler used to be lost or reordered in a messy way
24
// as they were passed further to the linker. This was fixed in #70665, and this test
35
// checks that linker arguments remain intact and in the order they were originally passed in.

tests/run-make/link-dedup/rmake.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// When native libraries are passed to the linker, there used to be an annoyance
24
// where multiple instances of the same library in a row would cause duplication in
35
// outputs. This has been fixed, and this test checks that it stays fixed.

tests/run-make/linker-warning/rmake.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@ needs-target-std
12
use run_make_support::{Rustc, diff, regex, rustc};
23

34
fn run_rustc() -> Rustc {

tests/run-make/llvm-outputs/rmake.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@ needs-target-std
12
// test that directories get created when emitting llvm bitcode and IR
23

34
use std::path::PathBuf;

tests/run-make/lto-avoid-object-duplication/rmake.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// This test makes sure that functions defined in the upstream crates do not
99
// appear twice in the final staticlib when listing all the symbols from it.
1010

11+
//@ needs-target-std
1112
//@ ignore-windows
1213
// Reason: `llvm-objdump`'s output looks different on windows than on other platforms.
1314
// Only checking on Unix platforms should suffice.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@ needs-target-std
12
use run_make_support::{path, rustc};
23

34
fn main() {

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// An extended version of the ui/changing-crates.rs test, this test puts
24
// multiple mismatching crates into the search path of crateC (A2 and A3)
35
// and checks that the standard error contains helpful messages to indicate

tests/run-make/metadata-dep-info/rmake.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// Emitting dep-info alongside metadata would present subtle discrepancies
24
// in the output file, such as the filename transforming underscores_ into hyphens-.
35
// After the fix in #114750, this test checks that the emitted files are identical

tests/run-make/metadata-only-crate-no-ice/rmake.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// In a dependency hierarchy, metadata-only crates could cause an Internal
24
// Compiler Error (ICE) due to a compiler bug - not correctly fetching sources for
35
// metadata-only crates. This test is a minimal reproduction of a program that triggered

tests/run-make/missing-crate-dependency/rmake.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// A simple smoke test to check that rustc fails compilation
24
// and outputs a helpful message when a dependency is missing
35
// in a dependency chain.

tests/run-make/multiple-emits/rmake.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@ needs-target-std
12
use run_make_support::{path, rustc};
23

34
fn main() {

tests/run-make/native-lib-alt-naming/rmake.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-target-std
2+
//
13
// On MSVC the alternative naming format for static libraries (`libfoo.a`) is accepted in addition
24
// to the default format (`foo.lib`).
35

0 commit comments

Comments
 (0)