mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
8991fd4bed
The lint-non-snake-case-crate test may emit a warning in stderr if the target does not support unwinding ``` warning: building proc macro crate with `panic=abort` may crash the compiler should the proc-macro panic ``` Consequently, the test will fail on targets that don't support unwinding as written. This change prevents lint-non-snake-case-crate#proc_macro_ from running on targets that don't support unwind by using the needs-unwind directive.
15 lines
434 B
Plaintext
15 lines
434 B
Plaintext
error: crate `NonSnakeCase` should have a snake case name
|
|
--> $DIR/lint-non-snake-case-crate.rs:29: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.rs:31:9
|
|
|
|
|
LL | #![deny(non_snake_case)]
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 1 previous error
|
|
|