@@ -14,7 +14,15 @@ LL | #![warn(unreachable_pub)]
1414 = help: or consider exporting it for use by other crates
1515
1616warning: unreachable `pub` item
17- --> $DIR/unreachable_pub-pub_crate.rs:28:5
17+ --> $DIR/unreachable_pub-pub_crate.rs:27:24
18+ |
19+ LL | pub use std::env::{Args}; // braced-use has different item spans than unbraced
20+ | ^^^^ help: consider restricting its visibility: `pub(crate)`
21+ |
22+ = help: or consider exporting it for use by other crates
23+
24+ warning: unreachable `pub` item
25+ --> $DIR/unreachable_pub-pub_crate.rs:29:5
1826 |
1927LL | pub struct Hydrogen {
2028 | ---^^^^^^^^^^^^^^^^
@@ -24,23 +32,23 @@ LL | pub struct Hydrogen {
2432 = help: or consider exporting it for use by other crates
2533
2634warning: unreachable `pub` field
27- --> $DIR/unreachable_pub-pub_crate.rs:30 :9
35+ --> $DIR/unreachable_pub-pub_crate.rs:31 :9
2836 |
2937LL | pub neutrons: usize,
3038 | ---^^^^^^^^^^^^^^^^
3139 | |
3240 | help: consider restricting its visibility: `pub(crate)`
3341
3442warning: unreachable `pub` item
35- --> $DIR/unreachable_pub-pub_crate.rs:36 :9
43+ --> $DIR/unreachable_pub-pub_crate.rs:37 :9
3644 |
3745LL | pub fn count_neutrons(&self) -> usize { self.neutrons }
3846 | ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3947 | |
4048 | help: consider restricting its visibility: `pub(crate)`
4149
4250warning: unreachable `pub` item
43- --> $DIR/unreachable_pub-pub_crate.rs:40 :5
51+ --> $DIR/unreachable_pub-pub_crate.rs:41 :5
4452 |
4553LL | pub enum Helium {}
4654 | ---^^^^^^^^^^^^
@@ -50,7 +58,7 @@ LL | pub enum Helium {}
5058 = help: or consider exporting it for use by other crates
5159
5260warning: unreachable `pub` item
53- --> $DIR/unreachable_pub-pub_crate.rs:41 :5
61+ --> $DIR/unreachable_pub-pub_crate.rs:42 :5
5462 |
5563LL | pub union Lithium { c1: usize, c2: u8 }
5664 | ---^^^^^^^^^^^^^^
@@ -60,7 +68,7 @@ LL | pub union Lithium { c1: usize, c2: u8 }
6068 = help: or consider exporting it for use by other crates
6169
6270warning: unreachable `pub` item
63- --> $DIR/unreachable_pub-pub_crate.rs:42 :5
71+ --> $DIR/unreachable_pub-pub_crate.rs:43 :5
6472 |
6573LL | pub fn beryllium() {}
6674 | ---^^^^^^^^^^^^^^^
@@ -70,7 +78,7 @@ LL | pub fn beryllium() {}
7078 = help: or consider exporting it for use by other crates
7179
7280warning: unreachable `pub` item
73- --> $DIR/unreachable_pub-pub_crate.rs:43 :5
81+ --> $DIR/unreachable_pub-pub_crate.rs:44 :5
7482 |
7583LL | pub trait Boron {}
7684 | ---^^^^^^^^^^^^
@@ -80,7 +88,7 @@ LL | pub trait Boron {}
8088 = help: or consider exporting it for use by other crates
8189
8290warning: unreachable `pub` item
83- --> $DIR/unreachable_pub-pub_crate.rs:44 :5
91+ --> $DIR/unreachable_pub-pub_crate.rs:45 :5
8492 |
8593LL | pub const CARBON: usize = 1;
8694 | ---^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -90,7 +98,7 @@ LL | pub const CARBON: usize = 1;
9098 = help: or consider exporting it for use by other crates
9199
92100warning: unreachable `pub` item
93- --> $DIR/unreachable_pub-pub_crate.rs:45 :5
101+ --> $DIR/unreachable_pub-pub_crate.rs:46 :5
94102 |
95103LL | pub static NITROGEN: usize = 2;
96104 | ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -100,7 +108,7 @@ LL | pub static NITROGEN: usize = 2;
100108 = help: or consider exporting it for use by other crates
101109
102110warning: unreachable `pub` item
103- --> $DIR/unreachable_pub-pub_crate.rs:46 :5
111+ --> $DIR/unreachable_pub-pub_crate.rs:47 :5
104112 |
105113LL | pub type Oxygen = bool;
106114 | ---^^^^^^^^^^^^^^^^^^^^
@@ -110,7 +118,7 @@ LL | pub type Oxygen = bool;
110118 = help: or consider exporting it for use by other crates
111119
112120warning: unreachable `pub` item
113- --> $DIR/unreachable_pub-pub_crate.rs:49 :47
121+ --> $DIR/unreachable_pub-pub_crate.rs:50 :47
114122 |
115123LL | ($visibility: vis, $name: ident) => { $visibility struct $name {} }
116124 | -----------^^^^^^^^^^^^^
@@ -123,7 +131,7 @@ LL | define_empty_struct_with_visibility!(pub, Fluorine);
123131 = help: or consider exporting it for use by other crates
124132
125133warning: unreachable `pub` item
126- --> $DIR/unreachable_pub-pub_crate.rs:54 :9
134+ --> $DIR/unreachable_pub-pub_crate.rs:55 :9
127135 |
128136LL | pub fn catalyze() -> bool;
129137 | ---^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments