Ignore wasm in dylib/proc-macro crate type tests

This commit is contained in:
许杰友 Jieyou Xu (Joe) 2024-03-02 11:49:36 +00:00
parent d363db71f8
commit 6e355ae44c
No known key found for this signature in database
GPG Key ID: 95DDEBD74A1DC2C0
4 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,4 @@
//@ ignore-wasm
#![crate_type = "dylib"]
#![crate_name = "NonSnakeCase"]
//~^ ERROR crate `NonSnakeCase` should have a snake case name

View File

@ -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)]
| ^^^^^^^^^^^^^^

View File

@ -1,3 +1,4 @@
//@ ignore-wasm
#![crate_type = "proc-macro"]
#![crate_name = "NonSnakeCase"]
//~^ ERROR crate `NonSnakeCase` should have a snake case name

View File

@ -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)]
| ^^^^^^^^^^^^^^