Skip to content

Commit 7ea0f2a

Browse files
committed
Only run lint tests on x86_64-unknown-linux-gnu
We're trying to test lint behavior, not per-target crate-type support.
1 parent 82ceec9 commit 7ea0f2a

9 files changed

+9
-5
lines changed

tests/ui/lint/lint-non-snake-case-crate-bin.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@ only-x86_64-unknown-linux-gnu
12
//@ check-pass
23
#![crate_name = "NonSnakeCase"]
34

tests/ui/lint/lint-non-snake-case-crate-bin2.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@ only-x86_64-unknown-linux-gnu
12
//@ compile-flags: --crate-name NonSnakeCase
23
//@ check-pass
34

tests/ui/lint/lint-non-snake-case-crate-bin3.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@ only-x86_64-unknown-linux-gnu
12
//@ check-pass
23
#![crate_type = "bin"]
34
#![crate_name = "NonSnakeCase"]

tests/ui/lint/lint-non-snake-case-crate-cdylib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@ ignore-i686-unknown-linux-musl
1+
//@ only-x86_64-unknown-linux-gnu
22
#![crate_type = "cdylib"]
33
#![crate_name = "NonSnakeCase"]
44
//~^ ERROR crate `NonSnakeCase` should have a snake case name

tests/ui/lint/lint-non-snake-case-crate-dylib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@ ignore-wasm
1+
//@ only-x86_64-unknown-linux-gnu
22
#![crate_type = "dylib"]
33
#![crate_name = "NonSnakeCase"]
44
//~^ ERROR crate `NonSnakeCase` should have a snake case name

tests/ui/lint/lint-non-snake-case-crate-lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@ only-x86_64-unknown-linux-gnu
12
#![crate_type = "lib"]
23
#![crate_name = "NonSnakeCase"]
34
//~^ ERROR crate `NonSnakeCase` should have a snake case name

tests/ui/lint/lint-non-snake-case-crate-proc-macro.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@ ignore-wasm
1+
//@ only-x86_64-unknown-linux-gnu
22
#![crate_type = "proc-macro"]
33
#![crate_name = "NonSnakeCase"]
44
//~^ ERROR crate `NonSnakeCase` should have a snake case name

tests/ui/lint/lint-non-snake-case-crate-rlib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@ only-x86_64-unknown-linux-gnu
12
#![crate_type = "rlib"]
23
#![crate_name = "NonSnakeCase"]
34
//~^ ERROR crate `NonSnakeCase` should have a snake case name

tests/ui/lint/lint-non-snake-case-crate-staticlib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
//@ ignore-wasm
2-
1+
//@ only-x86_64-unknown-linux-gnu
32
#![crate_type = "staticlib"]
43
#![crate_name = "NonSnakeCase"]
54
//~^ ERROR crate `NonSnakeCase` should have a snake case name

0 commit comments

Comments
 (0)