about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/tests.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-01-09 14:27:36 +0000
committerbors <bors@rust-lang.org>2022-01-09 14:27:36 +0000
commit59916952c9b7b820574b86aeca130d612fa15c1c (patch)
treee718210674e052967dedb4f96532e9dd6222d5bf /compiler/rustc_mir_transform/src/coverage/tests.rs
parent83a9f68bd7c3dead2e8bd6a1de7e27c927375739 (diff)
parenta6f80fccb19a52305ff88d960b4bb4e74df3d8b2 (diff)
downloadrust-59916952c9b7b820574b86aeca130d612fa15c1c.tar.gz
rust-59916952c9b7b820574b86aeca130d612fa15c1c.zip
Auto merge of #8236 - PatchMixolydic:single_char_lifetime_names, r=llogiq
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`]
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/tests.rs')
0 files changed, 0 insertions, 0 deletions