This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +19
-16
lines changed
tests/ui/lint/non-snake-case Expand file tree Collapse file tree 7 files changed +19
-16
lines changed Original file line number Diff line number Diff line change 11error: crate `NonSnakeCase` should have a snake case name
2- --> $DIR/lint-non-snake-case-crate.rs:29 :18
2+ --> $DIR/lint-non-snake-case-crate.rs:32 :18
33 |
44LL | #![crate_name = "NonSnakeCase"]
55 | ^^^^^^^^^^^^ help: convert the identifier to snake case: `non_snake_case`
66 |
77note: the lint level is defined here
8- --> $DIR/lint-non-snake-case-crate.rs:31 :9
8+ --> $DIR/lint-non-snake-case-crate.rs:34 :9
99 |
1010LL | #![deny(non_snake_case)]
1111 | ^^^^^^^^^^^^^^
Original file line number Diff line number Diff line change 11error: crate `NonSnakeCase` should have a snake case name
2- --> $DIR/lint-non-snake-case-crate.rs:29 :18
2+ --> $DIR/lint-non-snake-case-crate.rs:32 :18
33 |
44LL | #![crate_name = "NonSnakeCase"]
55 | ^^^^^^^^^^^^ help: convert the identifier to snake case: `non_snake_case`
66 |
77note: the lint level is defined here
8- --> $DIR/lint-non-snake-case-crate.rs:31 :9
8+ --> $DIR/lint-non-snake-case-crate.rs:34 :9
99 |
1010LL | #![deny(non_snake_case)]
1111 | ^^^^^^^^^^^^^^
Original file line number Diff line number Diff line change 11error: crate `NonSnakeCase` should have a snake case name
2- --> $DIR/lint-non-snake-case-crate.rs:29 :18
2+ --> $DIR/lint-non-snake-case-crate.rs:32 :18
33 |
44LL | #![crate_name = "NonSnakeCase"]
55 | ^^^^^^^^^^^^ help: convert the identifier to snake case: `non_snake_case`
66 |
77note: the lint level is defined here
8- --> $DIR/lint-non-snake-case-crate.rs:31 :9
8+ --> $DIR/lint-non-snake-case-crate.rs:34 :9
99 |
1010LL | #![deny(non_snake_case)]
1111 | ^^^^^^^^^^^^^^
Original file line number Diff line number Diff line change 11error: crate `NonSnakeCase` should have a snake case name
2- --> $DIR/lint-non-snake-case-crate.rs:29 :18
2+ --> $DIR/lint-non-snake-case-crate.rs:32 :18
33 |
44LL | #![crate_name = "NonSnakeCase"]
55 | ^^^^^^^^^^^^ help: convert the identifier to snake case: `non_snake_case`
66 |
77note: the lint level is defined here
8- --> $DIR/lint-non-snake-case-crate.rs:31 :9
8+ --> $DIR/lint-non-snake-case-crate.rs:34 :9
99 |
1010LL | #![deny(non_snake_case)]
1111 | ^^^^^^^^^^^^^^
Original file line number Diff line number Diff line change 11error: crate `NonSnakeCase` should have a snake case name
2- --> $DIR/lint-non-snake-case-crate.rs:29 :18
2+ --> $DIR/lint-non-snake-case-crate.rs:32 :18
33 |
44LL | #![crate_name = "NonSnakeCase"]
55 | ^^^^^^^^^^^^ help: convert the identifier to snake case: `non_snake_case`
66 |
77note: the lint level is defined here
8- --> $DIR/lint-non-snake-case-crate.rs:31 :9
8+ --> $DIR/lint-non-snake-case-crate.rs:34 :9
99 |
1010LL | #![deny(non_snake_case)]
1111 | ^^^^^^^^^^^^^^
Original file line number Diff line number Diff line change 1010
1111// But should fire on non-binary crates.
1212
13- //@[cdylib_] ignore-musl (dylibs are not supported)
14- //@[dylib_] ignore-musl (dylibs are not supported)
15- //@[dylib_] ignore-wasm (dylib is not supported)
16- //@[proc_macro_] ignore-wasm (dylib is not supported)
13+ // FIXME(#132309): dylib crate type is not supported on wasm; we need a proper
14+ // supports-crate-type directive
15+ //@[dylib_] ignore-wasm
16+ //@[dylib_] needs-dynamic-linking
17+ //@[cdylib_] needs-dynamic-linking
18+ //@[proc_macro_] force-host
19+ //@[proc_macro_] no-prefer-dynamic
1720
1821//@[cdylib_] compile-flags: --crate-type=cdylib
1922//@[dylib_] compile-flags: --crate-type=dylib
Original file line number Diff line number Diff line change 11error: crate `NonSnakeCase` should have a snake case name
2- --> $DIR/lint-non-snake-case-crate.rs:29 :18
2+ --> $DIR/lint-non-snake-case-crate.rs:32 :18
33 |
44LL | #![crate_name = "NonSnakeCase"]
55 | ^^^^^^^^^^^^ help: convert the identifier to snake case: `non_snake_case`
66 |
77note: the lint level is defined here
8- --> $DIR/lint-non-snake-case-crate.rs:31 :9
8+ --> $DIR/lint-non-snake-case-crate.rs:34 :9
99 |
1010LL | #![deny(non_snake_case)]
1111 | ^^^^^^^^^^^^^^
You can’t perform that action at this time.
0 commit comments