about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-07-01 15:02:21 +0000
committerbors <bors@rust-lang.org>2021-07-01 15:02:21 +0000
commit753bce30f057c8a51c1121e0d1958da4cb28059b (patch)
tree1497b30a1547cfe2f69e6569d9edc26085617efc /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parentcadb93b6de1b5ba5aca53c5c4c7987f3c09962a8 (diff)
parentfae7a09eea5644567ff7239abc3970d1e9a2d159 (diff)
downloadrust-753bce30f057c8a51c1121e0d1958da4cb28059b.tar.gz
rust-753bce30f057c8a51c1121e0d1958da4cb28059b.zip
Auto merge of #7407 - m-ou-se:doc-hidden-variants, r=flip1995
Don't suggest doc(hidden) or unstable variants in wildcard lint

Clippy's wildcard lint would suggest doc(hidden) and unstable variants for non_exhaustive enums, even though those aren't part of the public interface (yet) and should only be matched on using a `_`, just like potential future additions to the enum. There was already some logic to exclude a *single* doc(hidden) variant. This extends that to all hidden variants, and also hides `#[unstable]` variants.

See https://github.com/rust-lang/rust/pull/85746#issuecomment-868886893

This PR includes https://github.com/rust-lang/rust-clippy/pull/7406 as the first commit.

Here's the diff that this PR adds on top of that PR: https://github.com/m-ou-se/rust-clippy/compare/std-errorkind...m-ou-se:doc-hidden-variants

---

*Please write a short comment explaining your change (or "none" for internal only changes)*

changelog: No longer suggest unstable and doc(hidden) variants in wildcard lint. wildcard_enum_match_arm, match_wildcard_for_single_variants
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions