Skip to content

Commit

Permalink
Revert hack fixing #2475 added in commit 034c81b. It's no longer needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarcho committed May 5, 2022
1 parent 7c21f91 commit f4f8436
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions clippy_lints/src/attrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -593,11 +593,7 @@ fn check_empty_line_after_outer_attr(cx: &EarlyContext<'_>, item: &rustc_ast::It
};

if attr.style == AttrStyle::Outer {
if let MacArgs::Eq(_, MacArgsEq::Ast(expr)) = &attr_item.args
&& !matches!(expr.kind, rustc_ast::ExprKind::Lit(..)) {
return;
}
if attr_item.args.inner_tokens().is_empty() || !is_present_in_source(cx, attr.span) {
if !is_present_in_source(cx, attr.span) {
return;
}

Expand Down

0 comments on commit f4f8436

Please sign in to comment.