@@ -24,7 +24,7 @@ LL | pub use std::env::{Args}; // braced-use has different item spans than u
2424 = help: or consider exporting it for use by other crates
2525
2626warning: unreachable `pub` item
27- --> $DIR/unreachable_pub.rs:12 :5
27+ --> $DIR/unreachable_pub.rs:13 :5
2828 |
2929LL | pub struct Hydrogen {
3030 | ---^^^^^^^^^^^^^^^^
@@ -33,24 +33,16 @@ LL | pub struct Hydrogen {
3333 |
3434 = help: or consider exporting it for use by other crates
3535
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-
4436warning: unreachable `pub` item
45- --> $DIR/unreachable_pub.rs:20 :9
37+ --> $DIR/unreachable_pub.rs:24 :9
4638 |
4739LL | pub fn count_neutrons(&self) -> usize { self.neutrons }
4840 | ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4941 | |
5042 | help: consider restricting its visibility: `pub(crate)`
5143
5244warning: unreachable `pub` item
53- --> $DIR/unreachable_pub.rs:29 :5
45+ --> $DIR/unreachable_pub.rs:33 :5
5446 |
5547LL | pub enum Helium {}
5648 | ---^^^^^^^^^^^^
@@ -60,7 +52,7 @@ LL | pub enum Helium {}
6052 = help: or consider exporting it for use by other crates
6153
6254warning: unreachable `pub` item
63- --> $DIR/unreachable_pub.rs:30 :5
55+ --> $DIR/unreachable_pub.rs:34 :5
6456 |
6557LL | pub union Lithium { c1: usize, c2: u8 }
6658 | ---^^^^^^^^^^^^^^
@@ -70,7 +62,7 @@ LL | pub union Lithium { c1: usize, c2: u8 }
7062 = help: or consider exporting it for use by other crates
7163
7264warning: unreachable `pub` item
73- --> $DIR/unreachable_pub.rs:31 :5
65+ --> $DIR/unreachable_pub.rs:35 :5
7466 |
7567LL | pub fn beryllium() {}
7668 | ---^^^^^^^^^^^^^^^
@@ -80,7 +72,7 @@ LL | pub fn beryllium() {}
8072 = help: or consider exporting it for use by other crates
8173
8274warning: unreachable `pub` item
83- --> $DIR/unreachable_pub.rs:32 :5
75+ --> $DIR/unreachable_pub.rs:36 :5
8476 |
8577LL | pub trait Boron {}
8678 | ---^^^^^^^^^^^^
@@ -90,7 +82,7 @@ LL | pub trait Boron {}
9082 = help: or consider exporting it for use by other crates
9183
9284warning: unreachable `pub` item
93- --> $DIR/unreachable_pub.rs:33 :5
85+ --> $DIR/unreachable_pub.rs:37 :5
9486 |
9587LL | pub const CARBON: usize = 1;
9688 | ---^^^^^^^^^^^^^^^^^^^^
@@ -100,7 +92,7 @@ LL | pub const CARBON: usize = 1;
10092 = help: or consider exporting it for use by other crates
10193
10294warning: unreachable `pub` item
103- --> $DIR/unreachable_pub.rs:34 :5
95+ --> $DIR/unreachable_pub.rs:38 :5
10496 |
10597LL | pub static NITROGEN: usize = 2;
10698 | ---^^^^^^^^^^^^^^^^^^^^^^^
@@ -110,7 +102,7 @@ LL | pub static NITROGEN: usize = 2;
110102 = help: or consider exporting it for use by other crates
111103
112104warning: unreachable `pub` item
113- --> $DIR/unreachable_pub.rs:35 :5
105+ --> $DIR/unreachable_pub.rs:39 :5
114106 |
115107LL | pub type Oxygen = bool;
116108 | ---^^^^^^^^^^^^
@@ -120,7 +112,7 @@ LL | pub type Oxygen = bool;
120112 = help: or consider exporting it for use by other crates
121113
122114warning: unreachable `pub` item
123- --> $DIR/unreachable_pub.rs:38 :47
115+ --> $DIR/unreachable_pub.rs:42 :47
124116 |
125117LL | ($visibility: vis, $name: ident) => { $visibility struct $name {} }
126118 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -135,7 +127,7 @@ LL | define_empty_struct_with_visibility!(pub, Fluorine);
135127 = note: this warning originates in the macro `define_empty_struct_with_visibility` (in Nightly builds, run with -Z macro-backtrace for more info)
136128
137129warning: unreachable `pub` item
138- --> $DIR/unreachable_pub.rs:44 :9
130+ --> $DIR/unreachable_pub.rs:48 :9
139131 |
140132LL | pub fn catalyze() -> bool;
141133 | ---^^^^^^^^^^^^^^^^^^^^^^
@@ -144,5 +136,5 @@ LL | pub fn catalyze() -> bool;
144136 |
145137 = help: or consider exporting it for use by other crates
146138
147- warning: 14 warnings emitted
139+ warning: 13 warnings emitted
148140
0 commit comments