fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1warning: type `snake_case` should have an upper camel case name 2 --> $DIR/lint-group-nonstandard-style.rs:22:16 3 | 4LL | struct snake_case; 5 | ^^^^^^^^^^ help: convert the identifier to upper camel case: `SnakeCase` 6 | 7note: the lint level is defined here 8 --> $DIR/lint-group-nonstandard-style.rs:18:17 9 | 10LL | #![warn(nonstandard_style)] 11 | ^^^^^^^^^^^^^^^^^ 12 = note: `#[warn(non_camel_case_types)]` implied by `#[warn(nonstandard_style)]` 13 14error: function `CamelCase` should have a snake case name 15 --> $DIR/lint-group-nonstandard-style.rs:4:4 16 | 17LL | fn CamelCase() {} 18 | ^^^^^^^^^ help: convert the identifier to snake case: `camel_case` 19 | 20note: the lint level is defined here 21 --> $DIR/lint-group-nonstandard-style.rs:1:9 22 | 23LL | #![deny(nonstandard_style)] 24 | ^^^^^^^^^^^^^^^^^ 25 = note: `#[deny(non_snake_case)]` implied by `#[deny(nonstandard_style)]` 26 27error: function `CamelCase` should have a snake case name 28 --> $DIR/lint-group-nonstandard-style.rs:12:12 29 | 30LL | fn CamelCase() {} 31 | ^^^^^^^^^ help: convert the identifier to snake case: `camel_case` 32 | 33note: the lint level is defined here 34 --> $DIR/lint-group-nonstandard-style.rs:10:14 35 | 36LL | #[forbid(nonstandard_style)] 37 | ^^^^^^^^^^^^^^^^^ 38 = note: `#[forbid(non_snake_case)]` implied by `#[forbid(nonstandard_style)]` 39 40error: static variable `bad` should have an upper case name 41 --> $DIR/lint-group-nonstandard-style.rs:14:16 42 | 43LL | static bad: isize = 1; 44 | ^^^ help: convert the identifier to upper case: `BAD` 45 | 46 = note: `#[forbid(non_upper_case_globals)]` implied by `#[forbid(nonstandard_style)]` 47 48warning: function `CamelCase` should have a snake case name 49 --> $DIR/lint-group-nonstandard-style.rs:20:12 50 | 51LL | fn CamelCase() {} 52 | ^^^^^^^^^ help: convert the identifier to snake case: `camel_case` 53 | 54 = note: `#[warn(non_snake_case)]` implied by `#[warn(nonstandard_style)]` 55 56error: aborting due to 3 previous errors; 2 warnings emitted 57