We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7df7a0a commit cadb367Copy full SHA for cadb367
clippy_lints/src/attrs.rs
@@ -517,9 +517,9 @@ impl EarlyLintPass for CfgAttrPass {
517
// check for `rustfmt`
518
if let Some(feature_item) = items[0].meta_item();
519
if feature_item.name() == "rustfmt";
520
- // check for `rustfmt_skip`
+ // check for `rustfmt_skip` and `rustfmt::skip`
521
if let Some(skip_item) = &items[1].meta_item();
522
- if skip_item.name() == "rustfmt_skip";
+ if skip_item.name() == "rustfmt_skip" || skip_item.name() == "skip";
523
then {
524
let attr_style = match attr.style {
525
AttrStyle::Outer => "#[",
0 commit comments