From 6e355ae44c319d42ffdff6a1ed175b41b1525507 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E6=9D=B0=E5=8F=8B=20Jieyou=20Xu=20=28Joe=29?= Date: Sat, 2 Mar 2024 11:49:36 +0000 Subject: [PATCH] Ignore wasm in dylib/proc-macro crate type tests --- tests/ui/lint/lint-non-snake-case-crate-dylib.rs | 1 + tests/ui/lint/lint-non-snake-case-crate-dylib.stderr | 4 ++-- tests/ui/lint/lint-non-snake-case-crate-proc-macro.rs | 1 + tests/ui/lint/lint-non-snake-case-crate-proc-macro.stderr | 4 ++-- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/ui/lint/lint-non-snake-case-crate-dylib.rs b/tests/ui/lint/lint-non-snake-case-crate-dylib.rs index 1ab974c54f6..d735a91adf6 100644 --- a/tests/ui/lint/lint-non-snake-case-crate-dylib.rs +++ b/tests/ui/lint/lint-non-snake-case-crate-dylib.rs @@ -1,3 +1,4 @@ +//@ ignore-wasm #![crate_type = "dylib"] #![crate_name = "NonSnakeCase"] //~^ ERROR crate `NonSnakeCase` should have a snake case name diff --git a/tests/ui/lint/lint-non-snake-case-crate-dylib.stderr b/tests/ui/lint/lint-non-snake-case-crate-dylib.stderr index 23d40c2394d..4ee1a9cb3dd 100644 --- a/tests/ui/lint/lint-non-snake-case-crate-dylib.stderr +++ b/tests/ui/lint/lint-non-snake-case-crate-dylib.stderr @@ -1,11 +1,11 @@ error: crate `NonSnakeCase` should have a snake case name - --> $DIR/lint-non-snake-case-crate-dylib.rs:2:18 + --> $DIR/lint-non-snake-case-crate-dylib.rs:3:18 | LL | #![crate_name = "NonSnakeCase"] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `non_snake_case` | note: the lint level is defined here - --> $DIR/lint-non-snake-case-crate-dylib.rs:4:9 + --> $DIR/lint-non-snake-case-crate-dylib.rs:5:9 | LL | #![deny(non_snake_case)] | ^^^^^^^^^^^^^^ diff --git a/tests/ui/lint/lint-non-snake-case-crate-proc-macro.rs b/tests/ui/lint/lint-non-snake-case-crate-proc-macro.rs index 949abe5573c..78bc630cc4e 100644 --- a/tests/ui/lint/lint-non-snake-case-crate-proc-macro.rs +++ b/tests/ui/lint/lint-non-snake-case-crate-proc-macro.rs @@ -1,3 +1,4 @@ +//@ ignore-wasm #![crate_type = "proc-macro"] #![crate_name = "NonSnakeCase"] //~^ ERROR crate `NonSnakeCase` should have a snake case name diff --git a/tests/ui/lint/lint-non-snake-case-crate-proc-macro.stderr b/tests/ui/lint/lint-non-snake-case-crate-proc-macro.stderr index 4963eef88e4..e0091057bc9 100644 --- a/tests/ui/lint/lint-non-snake-case-crate-proc-macro.stderr +++ b/tests/ui/lint/lint-non-snake-case-crate-proc-macro.stderr @@ -1,11 +1,11 @@ error: crate `NonSnakeCase` should have a snake case name - --> $DIR/lint-non-snake-case-crate-proc-macro.rs:2:18 + --> $DIR/lint-non-snake-case-crate-proc-macro.rs:3:18 | LL | #![crate_name = "NonSnakeCase"] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `non_snake_case` | note: the lint level is defined here - --> $DIR/lint-non-snake-case-crate-proc-macro.rs:4:9 + --> $DIR/lint-non-snake-case-crate-proc-macro.rs:5:9 | LL | #![deny(non_snake_case)] | ^^^^^^^^^^^^^^