File tree Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Expand file tree Collapse file tree 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 11// check-pass
2+ // run-rustfix
23
34#[ warn( unreachable_pub) ]
4- #[ allow( unused) ]
55mod inner {
6+ #[ allow( unused) ]
67 pub enum T {
78 //~^ WARN unreachable `pub` item
89 A ( u8 ) ,
Original file line number Diff line number Diff line change 11warning: unreachable `pub` item
2- --> $DIR/issue-103317.rs:6 :5
2+ --> $DIR/issue-103317.rs:7 :5
33 |
44LL | pub enum T {
55 | ---^^^^^^^
@@ -8,7 +8,7 @@ LL | pub enum T {
88 |
99 = help: or consider exporting it for use by other crates
1010note: the lint level is defined here
11- --> $DIR/issue-103317.rs:3 :8
11+ --> $DIR/issue-103317.rs:4 :8
1212 |
1313LL | #[warn(unreachable_pub)]
1414 | ^^^^^^^^^^^^^^^
You can’t perform that action at this time.
0 commit comments