rust/tests/ui/lint/lint-non-snake-case-functions.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

63 lines
2.2 KiB
Plaintext
Raw Normal View History

error: method `Foo_Method` should have a snake case name
--> $DIR/lint-non-snake-case-functions.rs:7:8
2018-08-08 07:28:26 -05:00
|
LL | fn Foo_Method() {}
2019-10-14 16:48:45 -05:00
| ^^^^^^^^^^ help: convert the identifier to snake case: `foo_method`
2018-08-08 07:28:26 -05:00
|
2020-01-22 17:57:38 -06:00
note: the lint level is defined here
2018-12-25 09:56:47 -06:00
--> $DIR/lint-non-snake-case-functions.rs:1:9
2018-08-08 07:28:26 -05:00
|
LL | #![deny(non_snake_case)]
| ^^^^^^^^^^^^^^
error: method `foo__method` should have a snake case name
--> $DIR/lint-non-snake-case-functions.rs:11:8
2018-08-08 07:28:26 -05:00
|
LL | fn foo__method(&self) {}
| ^^^^^^^^^^^ help: convert the identifier to snake case: `foo_method`
2018-08-08 07:28:26 -05:00
error: method `xyZ` should have a snake case name
--> $DIR/lint-non-snake-case-functions.rs:14:12
2018-08-08 07:28:26 -05:00
|
LL | pub fn xyZ(&mut self) {}
| ^^^ help: convert the identifier to snake case: `xy_z`
2018-08-08 07:28:26 -05:00
error: method `render_HTML` should have a snake case name
--> $DIR/lint-non-snake-case-functions.rs:17:8
2018-08-08 07:28:26 -05:00
|
LL | fn render_HTML() {}
| ^^^^^^^^^^^ help: convert the identifier to snake case: `render_html`
2018-08-08 07:28:26 -05:00
error: trait method `ABC` should have a snake case name
--> $DIR/lint-non-snake-case-functions.rs:22:8
2018-08-08 07:28:26 -05:00
|
LL | fn ABC();
2019-10-14 16:48:45 -05:00
| ^^^ help: convert the identifier to snake case: `abc`
2018-08-08 07:28:26 -05:00
error: trait method `a_b_C` should have a snake case name
--> $DIR/lint-non-snake-case-functions.rs:25:8
2018-08-08 07:28:26 -05:00
|
LL | fn a_b_C(&self) {}
| ^^^^^ help: convert the identifier to snake case (notice the capitalization): `a_b_c`
2018-08-08 07:28:26 -05:00
error: trait method `something__else` should have a snake case name
--> $DIR/lint-non-snake-case-functions.rs:28:8
2018-08-08 07:28:26 -05:00
|
LL | fn something__else(&mut self);
| ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `something_else`
2018-08-08 07:28:26 -05:00
error: function `Cookie` should have a snake case name
--> $DIR/lint-non-snake-case-functions.rs:38:4
2018-08-08 07:28:26 -05:00
|
LL | fn Cookie() {}
| ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `cookie`
2018-08-08 07:28:26 -05:00
error: function `bi_S_Cuit` should have a snake case name
--> $DIR/lint-non-snake-case-functions.rs:41:8
2018-08-08 07:28:26 -05:00
|
LL | pub fn bi_S_Cuit() {}
| ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `bi_s_cuit`
2018-08-08 07:28:26 -05:00
error: aborting due to 9 previous errors