Remove redundant information and simplify only
condition · rust-lang/rust@732037c (original) (raw)
File tree
2 files changed
lines changed
- src/tools/compiletest/src
2 files changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -168,6 +168,7 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[ | ||
168 | 168 | "only-32bit", |
169 | 169 | "only-64bit", |
170 | 170 | "only-aarch64", |
171 | +"only-aarch64-unknown-linux-gnu", | |
171 | 172 | "only-apple", |
172 | 173 | "only-arm", |
173 | 174 | "only-avr", |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -3,10 +3,10 @@ | ||
3 | 3 | // This test does not require MTE: whilst the test will use MTE if available, if it is not, |
4 | 4 | // arbitrary tag bits are set using TBI. |
5 | 5 | |
6 | -//@ only-aarch64 | |
7 | -//@ only-linux | |
8 | -//@ only-gnu | |
9 | -//@ run-pass | |
6 | +// This test is only valid for AArch64. | |
7 | +// The linker must be explicitly specified when cross-compiling, so it is limited to | |
8 | +// `aarch64-unknown-linux-gnu`. | |
9 | +//@ only-aarch64-unknown-linux-gnu | |
10 | 10 | |
11 | 11 | use run_make_support::{cc, dynamic_lib_name, extra_c_flags, run, rustc, target}; |
12 | 12 | |
@@ -23,7 +23,7 @@ fn run_test(variant: &str) { | ||
23 | 23 | flags.push("-march=armv8.5-a+memtag"); |
24 | 24 | flags |
25 | 25 | }; |
26 | -print!("{variant} test..."); | |
26 | +println!("{variant} test..."); | |
27 | 27 | rustc() |
28 | 28 | .input(format!("foo_{variant}.rs")) |
29 | 29 | .target(target()) |
@@ -35,5 +35,4 @@ fn run_test(variant: &str) { | ||
35 | 35 | .args(&flags) |
36 | 36 | .run(); |
37 | 37 | run("test"); |
38 | -println!("\tpassed"); | |
39 | 38 | } |