rust/tests
bors a6f80fccb1 new lint: single_char_lifetime_names
This pull request adds a lint against single character lifetime names, as they might not divulge enough information about the purpose of the lifetime. This can make code harder to understand. I placed this in `restriction` rather than `pedantic` (as suggested in #8233) since most of the Rust ecosystem already uses single character lifetime names (to my knowledge, at least) and since single character lifetime names aren't incorrect. I'd be happy to change this upon request, however. Fixes #8233.

- [x] Followed lint naming conventions
- [x] Added passing UI tests (including committed `.stderr` file)
- [x] `cargo test` passes locally
- [x] Executed `cargo dev update_lints`
- [x] Added lint documentation
- [x] Run `cargo dev fmt`

changelog: new lint: [`single_char_lifetime_names`]
2022-01-09 14:27:36 +00:00
..
cargo
ui new lint: single_char_lifetime_names 2022-01-09 14:27:36 +00:00
ui_test
ui-cargo
ui-internal
ui-toml Merge commit '23d11428de3e973b34a5090a78d62887f821c90e' into clippyup 2021-12-17 13:40:22 +01:00
clippy.toml
compile-test.rs Extend [unused_io_amount] to cover AsyncRead and AsyncWrite. 2021-12-31 12:10:59 -05:00
dogfood.rs
fmt.rs
integration.rs
lint_message_convention.rs
missing-test-files.rs
versioncheck.rs