mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-13 08:27:14 +00:00
Also lint cfg_attr(.., rustfmt::skip)
This commit is contained in:
parent
7df7a0a86e
commit
cadb367a5c
1 changed files with 2 additions and 2 deletions
|
@ -517,9 +517,9 @@ impl EarlyLintPass for CfgAttrPass {
|
|||
// check for `rustfmt`
|
||||
if let Some(feature_item) = items[0].meta_item();
|
||||
if feature_item.name() == "rustfmt";
|
||||
// check for `rustfmt_skip`
|
||||
// check for `rustfmt_skip` and `rustfmt::skip`
|
||||
if let Some(skip_item) = &items[1].meta_item();
|
||||
if skip_item.name() == "rustfmt_skip";
|
||||
if skip_item.name() == "rustfmt_skip" || skip_item.name() == "skip";
|
||||
then {
|
||||
let attr_style = match attr.style {
|
||||
AttrStyle::Outer => "#[",
|
||||
|
|
Loading…
Reference in a new issue