File tree 3 files changed +18
-3
lines changed
3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change
1
+ // check-pass
2
+ // run-rustfix
3
+
4
+ #[warn(unreachable_pub)]
5
+ mod inner {
6
+ #[allow(unused)]
7
+ pub(crate) enum T {
8
+ //~^ WARN unreachable `pub` item
9
+ A(u8),
10
+ X { a: f32, b: () },
11
+ }
12
+ }
13
+
14
+ fn main() {}
Original file line number Diff line number Diff line change 1
1
// check-pass
2
+ // run-rustfix
2
3
3
4
#[ warn( unreachable_pub) ]
4
- #[ allow( unused) ]
5
5
mod inner {
6
+ #[ allow( unused) ]
6
7
pub enum T {
7
8
//~^ WARN unreachable `pub` item
8
9
A ( u8 ) ,
Original file line number Diff line number Diff line change 1
1
warning: unreachable `pub` item
2
- --> $DIR/issue-103317.rs:6 :5
2
+ --> $DIR/issue-103317.rs:7 :5
3
3
|
4
4
LL | pub enum T {
5
5
| ---^^^^^^^
@@ -8,7 +8,7 @@ LL | pub enum T {
8
8
|
9
9
= help: or consider exporting it for use by other crates
10
10
note: the lint level is defined here
11
- --> $DIR/issue-103317.rs:3 :8
11
+ --> $DIR/issue-103317.rs:4 :8
12
12
|
13
13
LL | #[warn(unreachable_pub)]
14
14
| ^^^^^^^^^^^^^^^
You can’t perform that action at this time.
0 commit comments