fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
2.2 KiB62 linesraw
1error: method `Foo_Method` should have a snake case name
2  --> $DIR/lint-non-snake-case-functions.rs:7:8
3   |
4LL |     fn Foo_Method() {}
5   |        ^^^^^^^^^^ help: convert the identifier to snake case: `foo_method`
6   |
7note: lint level defined here
8  --> $DIR/lint-non-snake-case-functions.rs:1:9
9   |
10LL | #![deny(non_snake_case)]
11   |         ^^^^^^^^^^^^^^
12
13error: method `foo__method` should have a snake case name
14  --> $DIR/lint-non-snake-case-functions.rs:11:8
15   |
16LL |     fn foo__method(&self) {}
17   |        ^^^^^^^^^^^ help: convert the identifier to snake case: `foo_method`
18
19error: method `xyZ` should have a snake case name
20  --> $DIR/lint-non-snake-case-functions.rs:14:12
21   |
22LL |     pub fn xyZ(&mut self) {}
23   |            ^^^ help: convert the identifier to snake case: `xy_z`
24
25error: method `render_HTML` should have a snake case name
26  --> $DIR/lint-non-snake-case-functions.rs:17:8
27   |
28LL |     fn render_HTML() {}
29   |        ^^^^^^^^^^^ help: convert the identifier to snake case: `render_html`
30
31error: trait method `ABC` should have a snake case name
32  --> $DIR/lint-non-snake-case-functions.rs:22:8
33   |
34LL |     fn ABC();
35   |        ^^^ help: convert the identifier to snake case: `abc`
36
37error: trait method `a_b_C` should have a snake case name
38  --> $DIR/lint-non-snake-case-functions.rs:25:8
39   |
40LL |     fn a_b_C(&self) {}
41   |        ^^^^^ help: convert the identifier to snake case (notice the capitalization): `a_b_c`
42
43error: trait method `something__else` should have a snake case name
44  --> $DIR/lint-non-snake-case-functions.rs:28:8
45   |
46LL |     fn something__else(&mut self);
47   |        ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `something_else`
48
49error: function `Cookie` should have a snake case name
50  --> $DIR/lint-non-snake-case-functions.rs:38:4
51   |
52LL | fn Cookie() {}
53   |    ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `cookie`
54
55error: function `bi_S_Cuit` should have a snake case name
56  --> $DIR/lint-non-snake-case-functions.rs:41:8
57   |
58LL | pub fn bi_S_Cuit() {}
59   |        ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `bi_s_cuit`
60
61error: aborting due to 9 previous errors
62