Skip to content

Commit

Permalink
Ignore wasm in dylib/proc-macro crate type tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jieyouxu committed Mar 2, 2024
1 parent d363db7 commit 6e355ae
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions tests/ui/lint/lint-non-snake-case-crate-dylib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@ ignore-wasm
#![crate_type = "dylib"]
#![crate_name = "NonSnakeCase"]
//~^ ERROR crate `NonSnakeCase` should have a snake case name
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/lint/lint-non-snake-case-crate-dylib.stderr
Original file line number Diff line number Diff line change
@@ -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)]
| ^^^^^^^^^^^^^^
Expand Down
1 change: 1 addition & 0 deletions tests/ui/lint/lint-non-snake-case-crate-proc-macro.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@ ignore-wasm
#![crate_type = "proc-macro"]
#![crate_name = "NonSnakeCase"]
//~^ ERROR crate `NonSnakeCase` should have a snake case name
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/lint/lint-non-snake-case-crate-proc-macro.stderr
Original file line number Diff line number Diff line change
@@ -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)]
| ^^^^^^^^^^^^^^
Expand Down

0 comments on commit 6e355ae

Please sign in to comment.