diff options
| author | bors <bors@rust-lang.org> | 2021-01-05 09:37:19 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-01-05 09:37:19 +0000 |
| commit | 311186b9bba220a38290b1c888864d7251c30882 (patch) | |
| tree | b7960feb46b85746de51cf8d2c67c592785c6d68 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | dd52066f74795d7640e2931be31466f5a131b26e (diff) | |
| parent | a8d47b4b78a6e6a23dc3320ad3c9e6308f6d1934 (diff) | |
| download | rust-311186b9bba220a38290b1c888864d7251c30882.tar.gz rust-311186b9bba220a38290b1c888864d7251c30882.zip | |
Auto merge of #6513 - nahuakang:fix/empty_enum_lint_never_type, r=flip1995
Fix: Empty enum never type suggested only if the feature is enabled This PR addresses [Issue 6422](https://github.com/rust-lang/rust-clippy/issues/6422). Instead of always recommending `never type` for empty enums, Clippy would only recommend [the lint](https://rust-lang.github.io/rust-clippy/master/index.html#empty_enum) if [LatePass.TyCtxt](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/context/struct.TyCtxt.html) has `features().never_type` enabled. - \[ ] Followed [lint naming conventions][lint_naming] - \[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` --- *Please write a short comment explaining your change (or "none" for internal only changes)* changelog: Only trigger [`empty_enum`] lint if `never_type` feature is enabled.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions
