]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/reasons.stderr
Rollup merge of #84687 - a1phyr:improve_rwlock, r=m-ou-se
[rust.git] / src / test / ui / lint / reasons.stderr
1 warning: hidden lifetime parameters in types are deprecated
2   --> $DIR/reasons.rs:21:29
3    |
4 LL |     fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
5    |                             ^^^^^^^^^^^^^^- help: indicate the anonymous lifetime: `<'_>`
6    |
7    = note: explicit anonymous lifetimes aid reasoning about ownership
8 note: the lint level is defined here
9   --> $DIR/reasons.rs:5:9
10    |
11 LL | #![warn(elided_lifetimes_in_paths,
12    |         ^^^^^^^^^^^^^^^^^^^^^^^^^
13
14 warning: variable `Social_exchange_psychology` should have a snake case name
15   --> $DIR/reasons.rs:30:9
16    |
17 LL |     let Social_exchange_psychology = CheaterDetectionMechanism {};
18    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `social_exchange_psychology`
19    |
20    = note: people shouldn't have to change their usual style habits
21            to contribute to our project
22 note: the lint level is defined here
23   --> $DIR/reasons.rs:9:5
24    |
25 LL |     nonstandard_style,
26    |     ^^^^^^^^^^^^^^^^^
27    = note: `#[warn(non_snake_case)]` implied by `#[warn(nonstandard_style)]`
28
29 warning: 2 warnings emitted
30