11warning: unreachable `pub` item
2- --> $DIR/unreachable_pub-pub_crate.rs:26 :5
2+ --> $DIR/unreachable_pub-pub_crate.rs:25 :5
33 |
44LL | pub use std::fmt;
55 | ---^^^^^^^^^^^^^^
66 | |
77 | help: consider restricting its visibility: `pub(crate)`
88 |
99note: lint level defined here
10- --> $DIR/unreachable_pub-pub_crate.rs:22 :9
10+ --> $DIR/unreachable_pub-pub_crate.rs:21 :9
1111 |
1212LL | #![warn(unreachable_pub)]
1313 | ^^^^^^^^^^^^^^^
1414 = help: or consider exporting it for use by other crates
1515
1616warning: unreachable `pub` item
17- --> $DIR/unreachable_pub-pub_crate.rs:27 :24
17+ --> $DIR/unreachable_pub-pub_crate.rs:26 :24
1818 |
1919LL | pub use std::env::{Args}; // braced-use has different item spans than unbraced
2020 | --- ^^^^
@@ -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-pub_crate.rs:29 :5
27+ --> $DIR/unreachable_pub-pub_crate.rs:28 :5
2828 |
2929LL | pub struct Hydrogen {
3030 | ---^^^^^^^^^^^^^^^^
@@ -34,23 +34,23 @@ LL | pub struct Hydrogen {
3434 = help: or consider exporting it for use by other crates
3535
3636warning: unreachable `pub` field
37- --> $DIR/unreachable_pub-pub_crate.rs:31 :9
37+ --> $DIR/unreachable_pub-pub_crate.rs:30 :9
3838 |
3939LL | pub neutrons: usize,
4040 | ---^^^^^^^^^^^^^^^^
4141 | |
4242 | help: consider restricting its visibility: `pub(crate)`
4343
4444warning: unreachable `pub` item
45- --> $DIR/unreachable_pub-pub_crate.rs:37 :9
45+ --> $DIR/unreachable_pub-pub_crate.rs:36 :9
4646 |
4747LL | pub fn count_neutrons(&self) -> usize { self.neutrons }
4848 | ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4949 | |
5050 | help: consider restricting its visibility: `pub(crate)`
5151
5252warning: unreachable `pub` item
53- --> $DIR/unreachable_pub-pub_crate.rs:41 :5
53+ --> $DIR/unreachable_pub-pub_crate.rs:40 :5
5454 |
5555LL | pub enum Helium {}
5656 | ---^^^^^^^^^^^^
@@ -60,7 +60,7 @@ LL | pub enum Helium {}
6060 = help: or consider exporting it for use by other crates
6161
6262warning: unreachable `pub` item
63- --> $DIR/unreachable_pub-pub_crate.rs:42 :5
63+ --> $DIR/unreachable_pub-pub_crate.rs:41 :5
6464 |
6565LL | pub union Lithium { c1: usize, c2: u8 }
6666 | ---^^^^^^^^^^^^^^
@@ -70,7 +70,7 @@ LL | pub union Lithium { c1: usize, c2: u8 }
7070 = help: or consider exporting it for use by other crates
7171
7272warning: unreachable `pub` item
73- --> $DIR/unreachable_pub-pub_crate.rs:43 :5
73+ --> $DIR/unreachable_pub-pub_crate.rs:42 :5
7474 |
7575LL | pub fn beryllium() {}
7676 | ---^^^^^^^^^^^^^^^
@@ -80,7 +80,7 @@ LL | pub fn beryllium() {}
8080 = help: or consider exporting it for use by other crates
8181
8282warning: unreachable `pub` item
83- --> $DIR/unreachable_pub-pub_crate.rs:44 :5
83+ --> $DIR/unreachable_pub-pub_crate.rs:43 :5
8484 |
8585LL | pub trait Boron {}
8686 | ---^^^^^^^^^^^^
@@ -90,7 +90,7 @@ LL | pub trait Boron {}
9090 = help: or consider exporting it for use by other crates
9191
9292warning: unreachable `pub` item
93- --> $DIR/unreachable_pub-pub_crate.rs:45 :5
93+ --> $DIR/unreachable_pub-pub_crate.rs:44 :5
9494 |
9595LL | pub const CARBON: usize = 1;
9696 | ---^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -100,7 +100,7 @@ LL | pub const CARBON: usize = 1;
100100 = help: or consider exporting it for use by other crates
101101
102102warning: unreachable `pub` item
103- --> $DIR/unreachable_pub-pub_crate.rs:46 :5
103+ --> $DIR/unreachable_pub-pub_crate.rs:45 :5
104104 |
105105LL | pub static NITROGEN: usize = 2;
106106 | ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -110,7 +110,7 @@ LL | pub static NITROGEN: usize = 2;
110110 = help: or consider exporting it for use by other crates
111111
112112warning: unreachable `pub` item
113- --> $DIR/unreachable_pub-pub_crate.rs:47 :5
113+ --> $DIR/unreachable_pub-pub_crate.rs:46 :5
114114 |
115115LL | pub type Oxygen = bool;
116116 | ---^^^^^^^^^^^^^^^^^^^^
@@ -120,7 +120,7 @@ LL | pub type Oxygen = bool;
120120 = help: or consider exporting it for use by other crates
121121
122122warning: unreachable `pub` item
123- --> $DIR/unreachable_pub-pub_crate.rs:50 :47
123+ --> $DIR/unreachable_pub-pub_crate.rs:49 :47
124124 |
125125LL | ($visibility: vis, $name: ident) => { $visibility struct $name {} }
126126 | ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -134,7 +134,7 @@ LL | define_empty_struct_with_visibility!(pub, Fluorine);
134134 = help: or consider exporting it for use by other crates
135135
136136warning: unreachable `pub` item
137- --> $DIR/unreachable_pub-pub_crate.rs:55 :9
137+ --> $DIR/unreachable_pub-pub_crate.rs:54 :9
138138 |
139139LL | pub fn catalyze() -> bool;
140140 | ---^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments