File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
rustfmt-core/rustfmt-lib/src Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ impl SkipContext {
29
29
}
30
30
}
31
31
for attr in attrs {
32
- if is_skip_attr_with ( & attr. item . path . segments , |s| s == sym ! ( macros) ) {
32
+ if is_skip_attr_with ( & attr. get_normal_item ( ) . path . segments , |s| s == sym ! ( macros) ) {
33
33
get_skip_names ( & mut self . macros , attr)
34
- } else if is_skip_attr_with ( & attr. item . path . segments , |s| s == sym:: attributes) {
34
+ } else if is_skip_attr_with ( & attr. get_normal_item ( ) . path . segments , |s| s == sym:: attributes) {
35
35
get_skip_names ( & mut self . attributes , attr)
36
36
}
37
37
}
Original file line number Diff line number Diff line change @@ -781,7 +781,7 @@ impl<'b, 'a: 'b> FmtVisitor<'a> {
781
781
ErrorKind :: DeprecatedAttr ,
782
782
) ] ,
783
783
) ;
784
- } else if self . is_unknown_rustfmt_attr ( & attr. path . segments ) {
784
+ } else if self . is_unknown_rustfmt_attr ( & attr. get_normal_item ( ) . path . segments ) {
785
785
let file_name = self . parse_sess . span_to_filename ( attr. span ) ;
786
786
self . report . append (
787
787
file_name,
You can’t perform that action at this time.
0 commit comments