Skip to content

Commit 57bc6e1

Browse files
committed
Allow unused fields in some tests
The dead_code lint was previously eroneously missing those. Since this lint bug has been fixed, the unused fields need to be marked #[allow(dead_code)].
1 parent 69072f5 commit 57bc6e1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/ui/impl-not-adjacent-to-type.rs

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
mod foo {
44
pub struct Point {
55
pub x: i32,
6+
#[allow(dead_code)]
67
pub y: i32,
78
}
89
}

tests/ui/union/union-macro.rs

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ macro_rules! duplicate {
1717

1818
duplicate! {
1919
pub union U {
20+
#[allow(dead_code)]
2021
pub a: u8
2122
}
2223
}

0 commit comments

Comments
 (0)