@@ -5,7 +5,7 @@ use crate::utils::{
5
5
span_lint_and_sugg, span_lint_and_then, without_block_comments,
6
6
} ;
7
7
use if_chain:: if_chain;
8
- use rustc_ast:: ast :: { AttrKind , AttrStyle , Attribute , Lit , LitKind , MetaItemKind , NestedMetaItem } ;
8
+ use rustc_ast:: { AttrKind , AttrStyle , Attribute , Lit , LitKind , MetaItemKind , NestedMetaItem } ;
9
9
use rustc_ast:: util:: lev_distance:: find_best_match_for_name;
10
10
use rustc_errors:: Applicability ;
11
11
use rustc_hir:: {
@@ -570,7 +570,7 @@ declare_lint_pass!(EarlyAttributes => [
570
570
] ) ;
571
571
572
572
impl EarlyLintPass for EarlyAttributes {
573
- fn check_item ( & mut self , cx : & EarlyContext < ' _ > , item : & rustc_ast:: ast :: Item ) {
573
+ fn check_item ( & mut self , cx : & EarlyContext < ' _ > , item : & rustc_ast:: Item ) {
574
574
check_empty_line_after_outer_attr ( cx, item) ;
575
575
}
576
576
@@ -580,7 +580,7 @@ impl EarlyLintPass for EarlyAttributes {
580
580
}
581
581
}
582
582
583
- fn check_empty_line_after_outer_attr ( cx : & EarlyContext < ' _ > , item : & rustc_ast:: ast :: Item ) {
583
+ fn check_empty_line_after_outer_attr ( cx : & EarlyContext < ' _ > , item : & rustc_ast:: Item ) {
584
584
for attr in & item. attrs {
585
585
let attr_item = if let AttrKind :: Normal ( ref attr) = attr. kind {
586
586
attr
0 commit comments