rust/tests/ui/lint/lint-group-nonstandard-style.stderr

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

58 lines
2.1 KiB
Plaintext
Raw Normal View History

warning: type `snake_case` should have an upper camel case name
--> $DIR/lint-group-nonstandard-style.rs:22:16
|
2019-03-09 12:03:44 +00:00
LL | struct snake_case;
| ^^^^^^^^^^ help: convert the identifier to upper camel case: `SnakeCase`
|
2020-01-22 23:57:38 +00:00
note: the lint level is defined here
2018-12-29 07:52:25 +00:00
--> $DIR/lint-group-nonstandard-style.rs:18:17
|
LL | #![warn(nonstandard_style)]
| ^^^^^^^^^^^^^^^^^
= note: `#[warn(non_camel_case_types)]` implied by `#[warn(nonstandard_style)]`
error: function `CamelCase` should have a snake case name
--> $DIR/lint-group-nonstandard-style.rs:4:4
|
2019-03-09 12:03:44 +00:00
LL | fn CamelCase() {}
| ^^^^^^^^^ help: convert the identifier to snake case: `camel_case`
|
2020-01-22 23:57:38 +00:00
note: the lint level is defined here
2018-12-29 07:52:25 +00:00
--> $DIR/lint-group-nonstandard-style.rs:1:9
|
2018-02-24 23:59:34 +00:00
LL | #![deny(nonstandard_style)]
2018-02-20 21:38:46 +00:00
| ^^^^^^^^^^^^^^^^^
= note: `#[deny(non_snake_case)]` implied by `#[deny(nonstandard_style)]`
error: function `CamelCase` should have a snake case name
--> $DIR/lint-group-nonstandard-style.rs:12:12
|
2019-03-09 12:03:44 +00:00
LL | fn CamelCase() {}
| ^^^^^^^^^ help: convert the identifier to snake case: `camel_case`
|
2020-01-22 23:57:38 +00:00
note: the lint level is defined here
2018-12-29 07:52:25 +00:00
--> $DIR/lint-group-nonstandard-style.rs:10:14
|
2018-02-24 23:59:34 +00:00
LL | #[forbid(nonstandard_style)]
2018-02-20 21:38:46 +00:00
| ^^^^^^^^^^^^^^^^^
= note: `#[forbid(non_snake_case)]` implied by `#[forbid(nonstandard_style)]`
error: static variable `bad` should have an upper case name
--> $DIR/lint-group-nonstandard-style.rs:14:16
|
2019-03-09 12:03:44 +00:00
LL | static bad: isize = 1;
| ^^^ help: convert the identifier to upper case: `BAD`
|
= note: `#[forbid(non_upper_case_globals)]` implied by `#[forbid(nonstandard_style)]`
warning: function `CamelCase` should have a snake case name
--> $DIR/lint-group-nonstandard-style.rs:20:12
|
2019-03-09 12:03:44 +00:00
LL | fn CamelCase() {}
| ^^^^^^^^^ help: convert the identifier to snake case: `camel_case`
|
= note: `#[warn(non_snake_case)]` implied by `#[warn(nonstandard_style)]`
error: aborting due to 3 previous errors; 2 warnings emitted