fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
2.3 KiB67 linesraw
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: lint level 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: lint level 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: lint level 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   |
46note: lint level defined here
47  --> $DIR/lint-group-nonstandard-style.rs:10:14
48   |
49LL |     #[forbid(nonstandard_style)]
50   |              ^^^^^^^^^^^^^^^^^
51   = note: `#[forbid(non_upper_case_globals)]` implied by `#[forbid(nonstandard_style)]`
52
53warning: function `CamelCase` should have a snake case name
54  --> $DIR/lint-group-nonstandard-style.rs:20:12
55   |
56LL |         fn CamelCase() {}
57   |            ^^^^^^^^^ help: convert the identifier to snake case: `camel_case`
58   |
59note: lint level defined here
60  --> $DIR/lint-group-nonstandard-style.rs:18:17
61   |
62LL |         #![warn(nonstandard_style)]
63   |                 ^^^^^^^^^^^^^^^^^
64   = note: `#[warn(non_snake_case)]` implied by `#[warn(nonstandard_style)]`
65
66error: aborting due to 3 previous errors
67