@@ -14,26 +14,6 @@ note: the lint level is defined here
1414LL | #![warn(dead_code)]
1515 | ^^^^^^^^^
1616
17- warning: fields `a` and `b` are never read
18- --> $DIR/issue-85255.rs:19:5
19- |
20- LL | pub(crate) struct Foo1 {
21- | ---- fields in this struct
22- LL | a: i32,
23- | ^
24- LL | pub b: i32,
25- | ^
26-
27- warning: fields `a` and `b` are never read
28- --> $DIR/issue-85255.rs:31:5
29- |
30- LL | pub(crate) struct Foo2 {
31- | ---- fields in this struct
32- LL | a: i32,
33- | ^
34- LL | pub b: i32,
35- | ^
36-
3717warning: method `a` is never used
3818 --> $DIR/issue-85255.rs:14:8
3919 |
@@ -46,6 +26,16 @@ warning: method `b` is never used
4626LL | pub fn b(&self) -> i32 { 6 }
4727 | ^
4828
29+ warning: fields `a` and `b` are never read
30+ --> $DIR/issue-85255.rs:19:5
31+ |
32+ LL | pub(crate) struct Foo1 {
33+ | ---- fields in this struct
34+ LL | a: i32,
35+ | ^
36+ LL | pub b: i32,
37+ | ^
38+
4939warning: method `a` is never used
5040 --> $DIR/issue-85255.rs:26:8
5141 |
@@ -58,6 +48,16 @@ warning: method `b` is never used
5848LL | pub fn b(&self) -> i32 { 6 }
5949 | ^
6050
51+ warning: fields `a` and `b` are never read
52+ --> $DIR/issue-85255.rs:31:5
53+ |
54+ LL | pub(crate) struct Foo2 {
55+ | ---- fields in this struct
56+ LL | a: i32,
57+ | ^
58+ LL | pub b: i32,
59+ | ^
60+
6161warning: method `a` is never used
6262 --> $DIR/issue-85255.rs:38:8
6363 |
0 commit comments