mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 22:12:15 +00:00
Ignore wasm in dylib/proc-macro crate type tests
This commit is contained in:
parent
d363db71f8
commit
6e355ae44c
@ -1,3 +1,4 @@
|
||||
//@ ignore-wasm
|
||||
#![crate_type = "dylib"]
|
||||
#![crate_name = "NonSnakeCase"]
|
||||
//~^ ERROR crate `NonSnakeCase` should have a snake case name
|
||||
|
@ -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)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
@ -1,3 +1,4 @@
|
||||
//@ ignore-wasm
|
||||
#![crate_type = "proc-macro"]
|
||||
#![crate_name = "NonSnakeCase"]
|
||||
//~^ ERROR crate `NonSnakeCase` should have a snake case name
|
||||
|
@ -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)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
Loading…
Reference in New Issue
Block a user