@@ -42,15 +42,15 @@ LL | pub neutrons: usize,
42
42
| help: consider restricting its visibility: `pub(crate)`
43
43
44
44
warning: unreachable `pub` item
45
- --> $DIR/unreachable_pub.rs:20 :9
45
+ --> $DIR/unreachable_pub.rs:24 :9
46
46
|
47
47
LL | pub fn count_neutrons(&self) -> usize { self.neutrons }
48
48
| ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
49
49
| |
50
50
| help: consider restricting its visibility: `pub(crate)`
51
51
52
52
warning: unreachable `pub` item
53
- --> $DIR/unreachable_pub.rs:29 :5
53
+ --> $DIR/unreachable_pub.rs:33 :5
54
54
|
55
55
LL | pub enum Helium {}
56
56
| ---^^^^^^^^^^^^
@@ -60,7 +60,7 @@ LL | pub enum Helium {}
60
60
= help: or consider exporting it for use by other crates
61
61
62
62
warning: unreachable `pub` item
63
- --> $DIR/unreachable_pub.rs:30 :5
63
+ --> $DIR/unreachable_pub.rs:34 :5
64
64
|
65
65
LL | pub union Lithium { c1: usize, c2: u8 }
66
66
| ---^^^^^^^^^^^^^^
@@ -70,7 +70,7 @@ LL | pub union Lithium { c1: usize, c2: u8 }
70
70
= help: or consider exporting it for use by other crates
71
71
72
72
warning: unreachable `pub` item
73
- --> $DIR/unreachable_pub.rs:31 :5
73
+ --> $DIR/unreachable_pub.rs:35 :5
74
74
|
75
75
LL | pub fn beryllium() {}
76
76
| ---^^^^^^^^^^^^^^^
@@ -80,7 +80,7 @@ LL | pub fn beryllium() {}
80
80
= help: or consider exporting it for use by other crates
81
81
82
82
warning: unreachable `pub` item
83
- --> $DIR/unreachable_pub.rs:32 :5
83
+ --> $DIR/unreachable_pub.rs:36 :5
84
84
|
85
85
LL | pub trait Boron {}
86
86
| ---^^^^^^^^^^^^
@@ -90,7 +90,7 @@ LL | pub trait Boron {}
90
90
= help: or consider exporting it for use by other crates
91
91
92
92
warning: unreachable `pub` item
93
- --> $DIR/unreachable_pub.rs:33 :5
93
+ --> $DIR/unreachable_pub.rs:37 :5
94
94
|
95
95
LL | pub const CARBON: usize = 1;
96
96
| ---^^^^^^^^^^^^^^^^^^^^
@@ -100,7 +100,7 @@ LL | pub const CARBON: usize = 1;
100
100
= help: or consider exporting it for use by other crates
101
101
102
102
warning: unreachable `pub` item
103
- --> $DIR/unreachable_pub.rs:34 :5
103
+ --> $DIR/unreachable_pub.rs:38 :5
104
104
|
105
105
LL | pub static NITROGEN: usize = 2;
106
106
| ---^^^^^^^^^^^^^^^^^^^^^^^
@@ -110,7 +110,7 @@ LL | pub static NITROGEN: usize = 2;
110
110
= help: or consider exporting it for use by other crates
111
111
112
112
warning: unreachable `pub` item
113
- --> $DIR/unreachable_pub.rs:35 :5
113
+ --> $DIR/unreachable_pub.rs:39 :5
114
114
|
115
115
LL | pub type Oxygen = bool;
116
116
| ---^^^^^^^^^^^^
@@ -120,7 +120,7 @@ LL | pub type Oxygen = bool;
120
120
= help: or consider exporting it for use by other crates
121
121
122
122
warning: unreachable `pub` item
123
- --> $DIR/unreachable_pub.rs:38 :47
123
+ --> $DIR/unreachable_pub.rs:42 :47
124
124
|
125
125
LL | ($visibility: vis, $name: ident) => { $visibility struct $name {} }
126
126
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -135,7 +135,7 @@ LL | define_empty_struct_with_visibility!(pub, Fluorine);
135
135
= note: this warning originates in the macro `define_empty_struct_with_visibility` (in Nightly builds, run with -Z macro-backtrace for more info)
136
136
137
137
warning: unreachable `pub` item
138
- --> $DIR/unreachable_pub.rs:44 :9
138
+ --> $DIR/unreachable_pub.rs:48 :9
139
139
|
140
140
LL | pub fn catalyze() -> bool;
141
141
| ---^^^^^^^^^^^^^^^^^^^^^^
0 commit comments