mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-22 11:03:16 +00:00
44 lines
1.2 KiB
Text
44 lines
1.2 KiB
Text
|
error: single-character lifetime names are likely uninformative
|
||
|
--> $DIR/single_char_lifetime_names.rs:4:22
|
||
|
|
|
||
|
LL | struct DiagnosticCtx<'a, 'b>
|
||
|
| ^^
|
||
|
|
|
||
|
= note: `-D clippy::single-char-lifetime-names` implied by `-D warnings`
|
||
|
= help: use a more informative name
|
||
|
|
||
|
error: single-character lifetime names are likely uninformative
|
||
|
--> $DIR/single_char_lifetime_names.rs:4:26
|
||
|
|
|
||
|
LL | struct DiagnosticCtx<'a, 'b>
|
||
|
| ^^
|
||
|
|
|
||
|
= help: use a more informative name
|
||
|
|
||
|
error: single-character lifetime names are likely uninformative
|
||
|
--> $DIR/single_char_lifetime_names.rs:13:6
|
||
|
|
|
||
|
LL | impl<'a, 'b> DiagnosticCtx<'a, 'b> {
|
||
|
| ^^
|
||
|
|
|
||
|
= help: use a more informative name
|
||
|
|
||
|
error: single-character lifetime names are likely uninformative
|
||
|
--> $DIR/single_char_lifetime_names.rs:13:10
|
||
|
|
|
||
|
LL | impl<'a, 'b> DiagnosticCtx<'a, 'b> {
|
||
|
| ^^
|
||
|
|
|
||
|
= help: use a more informative name
|
||
|
|
||
|
error: single-character lifetime names are likely uninformative
|
||
|
--> $DIR/single_char_lifetime_names.rs:33:15
|
||
|
|
|
||
|
LL | fn split_once<'a>(base: &'a str, other: &'_ str) -> (&'a str, Option<&'a str>) {
|
||
|
| ^^
|
||
|
|
|
||
|
= help: use a more informative name
|
||
|
|
||
|
error: aborting due to 5 previous errors
|
||
|
|