File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 6
6
#![ cfg_attr( rustfmt, rustfmt_skip) ]
7
7
8
8
#[ cfg_attr( rustfmt, rustfmt_skip) ]
9
- fn main ( ) { }
9
+ fn main ( ) {
10
+ foo:: f ( ) ;
11
+ }
12
+
13
+ mod foo {
14
+ #![ cfg_attr( rustfmt, rustfmt_skip) ]
15
+
16
+ pub fn f ( ) { }
17
+ }
Original file line number Diff line number Diff line change @@ -6,5 +6,11 @@ error: `cfg_attr` is deprecated for rustfmt and got replaced by tool_attributes
6
6
|
7
7
= note: `-D clippy::deprecated-cfg-attr` implied by `-D warnings`
8
8
9
- error: aborting due to previous error
9
+ error: `cfg_attr` is deprecated for rustfmt and got replaced by tool_attributes
10
+ --> $DIR/cfg_attr_lint.rs:14:5
11
+ |
12
+ 14 | #![cfg_attr(rustfmt, rustfmt_skip)]
13
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `#![rustfmt::skip]`
14
+
15
+ error: aborting due to 2 previous errors
10
16
You can’t perform that action at this time.
0 commit comments