Skip to content

Commit 137271a

Browse files
committed
Run rustfix test for 103317 case
1 parent 6a065f7 commit 137271a

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

src/test/ui/lint/issue-103317.fixed

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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() {}

src/test/ui/lint/issue-103317.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
// check-pass
2+
// run-rustfix
23

34
#[warn(unreachable_pub)]
4-
#[allow(unused)]
55
mod inner {
6+
#[allow(unused)]
67
pub enum T {
78
//~^ WARN unreachable `pub` item
89
A(u8),

src/test/ui/lint/issue-103317.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
warning: unreachable `pub` item
2-
--> $DIR/issue-103317.rs:6:5
2+
--> $DIR/issue-103317.rs:7:5
33
|
44
LL | pub enum T {
55
| ---^^^^^^^
@@ -8,7 +8,7 @@ LL | pub enum T {
88
|
99
= help: or consider exporting it for use by other crates
1010
note: the lint level is defined here
11-
--> $DIR/issue-103317.rs:3:8
11+
--> $DIR/issue-103317.rs:4:8
1212
|
1313
LL | #[warn(unreachable_pub)]
1414
| ^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)