1 warning: unreachable `pub` item
2 --> $DIR/unreachable_pub-pub_crate.rs:14:5
7 | help: consider restricting its visibility: `pub(crate)`
9 note: the lint level is defined here
10 --> $DIR/unreachable_pub-pub_crate.rs:10:9
12 LL | #![warn(unreachable_pub)]
14 = help: or consider exporting it for use by other crates
16 warning: unreachable `pub` item
17 --> $DIR/unreachable_pub-pub_crate.rs:15:24
19 LL | pub use std::env::{Args}; // braced-use has different item spans than unbraced
22 | help: consider restricting its visibility: `pub(crate)`
24 = help: or consider exporting it for use by other crates
26 warning: unreachable `pub` item
27 --> $DIR/unreachable_pub-pub_crate.rs:18:5
29 LL | pub struct Hydrogen {
32 | help: consider restricting its visibility: `pub(crate)`
34 = help: or consider exporting it for use by other crates
36 warning: unreachable `pub` field
37 --> $DIR/unreachable_pub-pub_crate.rs:20:9
39 LL | pub neutrons: usize,
42 | help: consider restricting its visibility: `pub(crate)`
44 warning: unreachable `pub` item
45 --> $DIR/unreachable_pub-pub_crate.rs:26:9
47 LL | pub fn count_neutrons(&self) -> usize { self.neutrons }
48 | ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
50 | help: consider restricting its visibility: `pub(crate)`
52 warning: unreachable `pub` item
53 --> $DIR/unreachable_pub-pub_crate.rs:30:5
55 LL | pub enum Helium {}
58 | help: consider restricting its visibility: `pub(crate)`
60 = help: or consider exporting it for use by other crates
62 warning: unreachable `pub` item
63 --> $DIR/unreachable_pub-pub_crate.rs:31:5
65 LL | pub union Lithium { c1: usize, c2: u8 }
68 | help: consider restricting its visibility: `pub(crate)`
70 = help: or consider exporting it for use by other crates
72 warning: unreachable `pub` item
73 --> $DIR/unreachable_pub-pub_crate.rs:32:5
75 LL | pub fn beryllium() {}
78 | help: consider restricting its visibility: `pub(crate)`
80 = help: or consider exporting it for use by other crates
82 warning: unreachable `pub` item
83 --> $DIR/unreachable_pub-pub_crate.rs:33:5
85 LL | pub trait Boron {}
88 | help: consider restricting its visibility: `pub(crate)`
90 = help: or consider exporting it for use by other crates
92 warning: unreachable `pub` item
93 --> $DIR/unreachable_pub-pub_crate.rs:34:5
95 LL | pub const CARBON: usize = 1;
96 | ---^^^^^^^^^^^^^^^^^^^^^^^^^
98 | help: consider restricting its visibility: `pub(crate)`
100 = help: or consider exporting it for use by other crates
102 warning: unreachable `pub` item
103 --> $DIR/unreachable_pub-pub_crate.rs:35:5
105 LL | pub static NITROGEN: usize = 2;
106 | ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^
108 | help: consider restricting its visibility: `pub(crate)`
110 = help: or consider exporting it for use by other crates
112 warning: unreachable `pub` item
113 --> $DIR/unreachable_pub-pub_crate.rs:36:5
115 LL | pub type Oxygen = bool;
116 | ---^^^^^^^^^^^^^^^^^^^^
118 | help: consider restricting its visibility: `pub(crate)`
120 = help: or consider exporting it for use by other crates
122 warning: unreachable `pub` item
123 --> $DIR/unreachable_pub-pub_crate.rs:39:47
125 LL | ($visibility: vis, $name: ident) => { $visibility struct $name {} }
126 | ^^^^^^^^^^^^^^^^^^^^^^^^
128 LL | define_empty_struct_with_visibility!(pub, Fluorine);
129 | ----------------------------------------------------
131 | | help: consider restricting its visibility: `pub(crate)`
132 | in this macro invocation
134 = help: or consider exporting it for use by other crates
135 = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
137 warning: unreachable `pub` item
138 --> $DIR/unreachable_pub-pub_crate.rs:45:9
140 LL | pub fn catalyze() -> bool;
141 | ---^^^^^^^^^^^^^^^^^^^^^^^
143 | help: consider restricting its visibility: `pub(crate)`
145 = help: or consider exporting it for use by other crates