@@ -14,26 +14,6 @@ note: the lint level is defined here
14
14
LL | #![warn(dead_code)]
15
15
| ^^^^^^^^^
16
16
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
-
37
17
warning: method `a` is never used
38
18
--> $DIR/issue-85255.rs:14:8
39
19
|
@@ -46,6 +26,16 @@ warning: method `b` is never used
46
26
LL | pub fn b(&self) -> i32 { 6 }
47
27
| ^
48
28
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
+
49
39
warning: method `a` is never used
50
40
--> $DIR/issue-85255.rs:26:8
51
41
|
@@ -58,6 +48,16 @@ warning: method `b` is never used
58
48
LL | pub fn b(&self) -> i32 { 6 }
59
49
| ^
60
50
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
+
61
61
warning: method `a` is never used
62
62
--> $DIR/issue-85255.rs:38:8
63
63
|
0 commit comments