about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.panic-unwind.diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-06-02 09:36:05 +0000
committerbors <bors@rust-lang.org>2023-06-02 09:36:05 +0000
commit7c448a6910bf9ceda0df8d0871a34dc398dbde9d (patch)
tree919e452aace798551d570b671b5bc1b29bbbdd93 /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.panic-unwind.diff
parent30448e8cf98d4754350db0c959644564f317bc0f (diff)
parentad76687b2f2cf041190ca44f7a53d89f84ac552b (diff)
downloadrust-7c448a6910bf9ceda0df8d0871a34dc398dbde9d.tar.gz
rust-7c448a6910bf9ceda0df8d0871a34dc398dbde9d.zip
Auto merge of #10860 - ihciah:master, r=Manishearth
add checking for cfg(features = ...)

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

changelog: [`maybe_misused_cfg`]: check if `#[cfg(feature = "...")]` misused as `#[cfg(features = "...")]`

I've found that there is no indication when `#[cfg(features = "...")]` is used incorrectly, which can easily make mistakes hard to spot. When I searched for this code on github, I also found many misuse cases([link](https://github.com/search?q=%23%5Bcfg%28features+language%3ARust&type=code)).

PS: This clippy name is just a temporary name, it can be replaced with a better name.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions