@@ -24,7 +24,7 @@ LL | pub use std::env::{Args}; // braced-use has different item spans than u
24
24
= help: or consider exporting it for use by other crates
25
25
26
26
warning: unreachable `pub` item
27
- --> $DIR/unreachable_pub.rs:12 :5
27
+ --> $DIR/unreachable_pub.rs:13 :5
28
28
|
29
29
LL | pub struct Hydrogen {
30
30
| ---^^^^^^^^^^^^^^^^
@@ -33,24 +33,16 @@ LL | pub struct Hydrogen {
33
33
|
34
34
= help: or consider exporting it for use by other crates
35
35
36
- warning: unreachable `pub` field
37
- --> $DIR/unreachable_pub.rs:14:9
38
- |
39
- LL | pub neutrons: usize,
40
- | ---^^^^^^^^^^^^^^^^
41
- | |
42
- | help: consider restricting its visibility: `pub(crate)`
43
-
44
36
warning: unreachable `pub` item
45
- --> $DIR/unreachable_pub.rs:20 :9
37
+ --> $DIR/unreachable_pub.rs:24 :9
46
38
|
47
39
LL | pub fn count_neutrons(&self) -> usize { self.neutrons }
48
40
| ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
49
41
| |
50
42
| help: consider restricting its visibility: `pub(crate)`
51
43
52
44
warning: unreachable `pub` item
53
- --> $DIR/unreachable_pub.rs:29 :5
45
+ --> $DIR/unreachable_pub.rs:33 :5
54
46
|
55
47
LL | pub enum Helium {}
56
48
| ---^^^^^^^^^^^^
@@ -60,7 +52,7 @@ LL | pub enum Helium {}
60
52
= help: or consider exporting it for use by other crates
61
53
62
54
warning: unreachable `pub` item
63
- --> $DIR/unreachable_pub.rs:30 :5
55
+ --> $DIR/unreachable_pub.rs:34 :5
64
56
|
65
57
LL | pub union Lithium { c1: usize, c2: u8 }
66
58
| ---^^^^^^^^^^^^^^
@@ -70,7 +62,7 @@ LL | pub union Lithium { c1: usize, c2: u8 }
70
62
= help: or consider exporting it for use by other crates
71
63
72
64
warning: unreachable `pub` item
73
- --> $DIR/unreachable_pub.rs:31 :5
65
+ --> $DIR/unreachable_pub.rs:35 :5
74
66
|
75
67
LL | pub fn beryllium() {}
76
68
| ---^^^^^^^^^^^^^^^
@@ -80,7 +72,7 @@ LL | pub fn beryllium() {}
80
72
= help: or consider exporting it for use by other crates
81
73
82
74
warning: unreachable `pub` item
83
- --> $DIR/unreachable_pub.rs:32 :5
75
+ --> $DIR/unreachable_pub.rs:36 :5
84
76
|
85
77
LL | pub trait Boron {}
86
78
| ---^^^^^^^^^^^^
@@ -90,7 +82,7 @@ LL | pub trait Boron {}
90
82
= help: or consider exporting it for use by other crates
91
83
92
84
warning: unreachable `pub` item
93
- --> $DIR/unreachable_pub.rs:33 :5
85
+ --> $DIR/unreachable_pub.rs:37 :5
94
86
|
95
87
LL | pub const CARBON: usize = 1;
96
88
| ---^^^^^^^^^^^^^^^^^^^^
@@ -100,7 +92,7 @@ LL | pub const CARBON: usize = 1;
100
92
= help: or consider exporting it for use by other crates
101
93
102
94
warning: unreachable `pub` item
103
- --> $DIR/unreachable_pub.rs:34 :5
95
+ --> $DIR/unreachable_pub.rs:38 :5
104
96
|
105
97
LL | pub static NITROGEN: usize = 2;
106
98
| ---^^^^^^^^^^^^^^^^^^^^^^^
@@ -110,7 +102,7 @@ LL | pub static NITROGEN: usize = 2;
110
102
= help: or consider exporting it for use by other crates
111
103
112
104
warning: unreachable `pub` item
113
- --> $DIR/unreachable_pub.rs:35 :5
105
+ --> $DIR/unreachable_pub.rs:39 :5
114
106
|
115
107
LL | pub type Oxygen = bool;
116
108
| ---^^^^^^^^^^^^
@@ -120,7 +112,7 @@ LL | pub type Oxygen = bool;
120
112
= help: or consider exporting it for use by other crates
121
113
122
114
warning: unreachable `pub` item
123
- --> $DIR/unreachable_pub.rs:38 :47
115
+ --> $DIR/unreachable_pub.rs:42 :47
124
116
|
125
117
LL | ($visibility: vis, $name: ident) => { $visibility struct $name {} }
126
118
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -135,7 +127,7 @@ LL | define_empty_struct_with_visibility!(pub, Fluorine);
135
127
= note: this warning originates in the macro `define_empty_struct_with_visibility` (in Nightly builds, run with -Z macro-backtrace for more info)
136
128
137
129
warning: unreachable `pub` item
138
- --> $DIR/unreachable_pub.rs:44 :9
130
+ --> $DIR/unreachable_pub.rs:48 :9
139
131
|
140
132
LL | pub fn catalyze() -> bool;
141
133
| ---^^^^^^^^^^^^^^^^^^^^^^
@@ -144,5 +136,5 @@ LL | pub fn catalyze() -> bool;
144
136
|
145
137
= help: or consider exporting it for use by other crates
146
138
147
- warning: 14 warnings emitted
139
+ warning: 13 warnings emitted
148
140
0 commit comments