2018-09-30 00:25:26 +00:00
|
|
|
warning: hidden lifetime parameters in types are deprecated
|
2021-12-27 22:10:59 +00:00
|
|
|
--> $DIR/reasons.rs:20:34
|
2018-09-30 00:25:26 +00:00
|
|
|
|
|
|
|
|
LL | fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
|
2022-03-10 22:12:35 +00:00
|
|
|
| -----^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| expected lifetime parameter
|
2018-09-30 00:25:26 +00:00
|
|
|
|
|
|
|
|
= note: explicit anonymous lifetimes aid reasoning about ownership
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2021-07-11 13:04:57 +00:00
|
|
|
--> $DIR/reasons.rs:4:9
|
2018-09-30 00:25:26 +00:00
|
|
|
|
|
|
|
|
LL | #![warn(elided_lifetimes_in_paths,
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-03-10 22:12:35 +00:00
|
|
|
help: indicate the anonymous lifetime
|
2021-07-11 13:04:57 +00:00
|
|
|
|
|
|
|
|
LL | fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
|
2022-03-10 22:12:35 +00:00
|
|
|
| ++++
|
2018-09-30 00:25:26 +00:00
|
|
|
|
2019-01-04 15:19:52 +00:00
|
|
|
warning: variable `Social_exchange_psychology` should have a snake case name
|
2018-09-30 01:00:50 +00:00
|
|
|
--> $DIR/reasons.rs:30:9
|
2018-09-30 00:25:26 +00:00
|
|
|
|
|
|
|
|
LL | let Social_exchange_psychology = CheaterDetectionMechanism {};
|
2019-10-14 04:48:39 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `social_exchange_psychology`
|
2018-09-30 00:25:26 +00:00
|
|
|
|
|
|
|
|
= note: people shouldn't have to change their usual style habits
|
|
|
|
to contribute to our project
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2021-07-11 13:04:57 +00:00
|
|
|
--> $DIR/reasons.rs:8:5
|
2018-09-30 00:25:26 +00:00
|
|
|
|
|
|
|
|
LL | nonstandard_style,
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2019-07-16 20:17:38 +00:00
|
|
|
= note: `#[warn(non_snake_case)]` implied by `#[warn(nonstandard_style)]`
|
2018-09-30 00:25:26 +00:00
|
|
|
|
2020-03-11 15:30:09 +00:00
|
|
|
warning: 2 warnings emitted
|
|
|
|
|