2017-11-02 20:50:17 -07:00
|
|
|
warning: unreachable `pub` item
|
2017-12-10 21:12:28 +00:00
|
|
|
--> $DIR/unreachable_pub-pub_crate.rs:26:5
|
2017-11-02 20:50:17 -07:00
|
|
|
|
|
2017-12-10 21:12:28 +00:00
|
|
|
26 | pub use std::fmt;
|
2017-11-02 20:50:17 -07:00
|
|
|
| ---^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: consider restricting its visibility: `pub(crate)`
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
2017-12-10 21:12:28 +00:00
|
|
|
--> $DIR/unreachable_pub-pub_crate.rs:22:9
|
2017-11-02 20:50:17 -07:00
|
|
|
|
|
2017-12-10 21:12:28 +00:00
|
|
|
22 | #![warn(unreachable_pub)]
|
2017-11-02 20:50:17 -07:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
= help: or consider exporting it for use by other crates
|
|
|
|
|
|
|
|
warning: unreachable `pub` item
|
2017-12-10 21:12:28 +00:00
|
|
|
--> $DIR/unreachable_pub-pub_crate.rs:28:5
|
2017-11-02 20:50:17 -07:00
|
|
|
|
|
2017-12-10 21:12:28 +00:00
|
|
|
28 | pub struct Hydrogen {
|
2017-11-02 20:50:17 -07:00
|
|
|
| ---^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: consider restricting its visibility: `pub(crate)`
|
|
|
|
|
|
|
|
|
= help: or consider exporting it for use by other crates
|
|
|
|
|
|
|
|
warning: unreachable `pub` field
|
2017-12-10 21:12:28 +00:00
|
|
|
--> $DIR/unreachable_pub-pub_crate.rs:30:9
|
2017-11-02 20:50:17 -07:00
|
|
|
|
|
2017-12-10 21:12:28 +00:00
|
|
|
30 | pub neutrons: usize,
|
2017-11-02 20:50:17 -07:00
|
|
|
| ---^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: consider restricting its visibility: `pub(crate)`
|
|
|
|
|
|
|
|
warning: unreachable `pub` item
|
2017-12-10 21:12:28 +00:00
|
|
|
--> $DIR/unreachable_pub-pub_crate.rs:36:9
|
2017-11-02 20:50:17 -07:00
|
|
|
|
|
2017-12-10 21:12:28 +00:00
|
|
|
36 | pub fn count_neutrons(&self) -> usize { self.neutrons }
|
2017-11-02 20:50:17 -07:00
|
|
|
| ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: consider restricting its visibility: `pub(crate)`
|
|
|
|
|
|
|
|
warning: unreachable `pub` item
|
2017-12-10 21:12:28 +00:00
|
|
|
--> $DIR/unreachable_pub-pub_crate.rs:40:5
|
2017-11-02 20:50:17 -07:00
|
|
|
|
|
2017-12-10 21:12:28 +00:00
|
|
|
40 | pub enum Helium {}
|
2017-11-02 20:50:17 -07:00
|
|
|
| ---^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: consider restricting its visibility: `pub(crate)`
|
|
|
|
|
|
|
|
|
= help: or consider exporting it for use by other crates
|
|
|
|
|
|
|
|
warning: unreachable `pub` item
|
2017-12-10 21:12:28 +00:00
|
|
|
--> $DIR/unreachable_pub-pub_crate.rs:41:5
|
2017-11-02 20:50:17 -07:00
|
|
|
|
|
2017-12-10 21:12:28 +00:00
|
|
|
41 | pub union Lithium { c1: usize, c2: u8 }
|
2017-11-02 20:50:17 -07:00
|
|
|
| ---^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: consider restricting its visibility: `pub(crate)`
|
|
|
|
|
|
|
|
|
= help: or consider exporting it for use by other crates
|
|
|
|
|
|
|
|
warning: unreachable `pub` item
|
2017-12-10 21:12:28 +00:00
|
|
|
--> $DIR/unreachable_pub-pub_crate.rs:42:5
|
2017-11-02 20:50:17 -07:00
|
|
|
|
|
2017-12-10 21:12:28 +00:00
|
|
|
42 | pub fn beryllium() {}
|
2017-11-02 20:50:17 -07:00
|
|
|
| ---^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: consider restricting its visibility: `pub(crate)`
|
|
|
|
|
|
|
|
|
= help: or consider exporting it for use by other crates
|
|
|
|
|
|
|
|
warning: unreachable `pub` item
|
2017-12-10 21:12:28 +00:00
|
|
|
--> $DIR/unreachable_pub-pub_crate.rs:43:5
|
2017-11-02 20:50:17 -07:00
|
|
|
|
|
2017-12-10 21:12:28 +00:00
|
|
|
43 | pub trait Boron {}
|
2017-11-02 20:50:17 -07:00
|
|
|
| ---^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: consider restricting its visibility: `pub(crate)`
|
|
|
|
|
|
|
|
|
= help: or consider exporting it for use by other crates
|
|
|
|
|
|
|
|
warning: unreachable `pub` item
|
2017-12-10 21:12:28 +00:00
|
|
|
--> $DIR/unreachable_pub-pub_crate.rs:44:5
|
2017-11-02 20:50:17 -07:00
|
|
|
|
|
2017-12-10 21:12:28 +00:00
|
|
|
44 | pub const CARBON: usize = 1;
|
2017-11-02 20:50:17 -07:00
|
|
|
| ---^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: consider restricting its visibility: `pub(crate)`
|
|
|
|
|
|
|
|
|
= help: or consider exporting it for use by other crates
|
|
|
|
|
|
|
|
warning: unreachable `pub` item
|
2017-12-10 21:12:28 +00:00
|
|
|
--> $DIR/unreachable_pub-pub_crate.rs:45:5
|
2017-11-02 20:50:17 -07:00
|
|
|
|
|
2017-12-10 21:12:28 +00:00
|
|
|
45 | pub static NITROGEN: usize = 2;
|
2017-11-02 20:50:17 -07:00
|
|
|
| ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: consider restricting its visibility: `pub(crate)`
|
|
|
|
|
|
|
|
|
= help: or consider exporting it for use by other crates
|
|
|
|
|
|
|
|
warning: unreachable `pub` item
|
2017-12-10 21:12:28 +00:00
|
|
|
--> $DIR/unreachable_pub-pub_crate.rs:46:5
|
2017-11-02 20:50:17 -07:00
|
|
|
|
|
2017-12-10 21:12:28 +00:00
|
|
|
46 | pub type Oxygen = bool;
|
2017-11-02 20:50:17 -07:00
|
|
|
| ---^^^^^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: consider restricting its visibility: `pub(crate)`
|
|
|
|
|
|
|
|
|
= help: or consider exporting it for use by other crates
|
|
|
|
|
|
|
|
warning: unreachable `pub` item
|
2017-12-10 21:12:28 +00:00
|
|
|
--> $DIR/unreachable_pub-pub_crate.rs:49:47
|
2017-11-02 20:50:17 -07:00
|
|
|
|
|
2017-12-10 21:12:28 +00:00
|
|
|
49 | ($visibility: vis, $name: ident) => { $visibility struct $name {} }
|
2017-11-02 20:50:17 -07:00
|
|
|
| -----------^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: consider restricting its visibility: `pub(crate)`
|
2017-12-10 21:12:28 +00:00
|
|
|
50 | }
|
|
|
|
51 | define_empty_struct_with_visibility!(pub, Fluorine);
|
2017-11-02 20:50:17 -07:00
|
|
|
| ---------------------------------------------------- in this macro invocation
|
|
|
|
|
|
|
|
|
= help: or consider exporting it for use by other crates
|
|
|
|
|
|
|
|
warning: unreachable `pub` item
|
2017-12-10 21:12:28 +00:00
|
|
|
--> $DIR/unreachable_pub-pub_crate.rs:54:9
|
2017-11-02 20:50:17 -07:00
|
|
|
|
|
2017-12-10 21:12:28 +00:00
|
|
|
54 | pub fn catalyze() -> bool;
|
2017-11-02 20:50:17 -07:00
|
|
|
| ---^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: consider restricting its visibility: `pub(crate)`
|
|
|
|
|
|
|
|
|
= help: or consider exporting it for use by other crates
|
|
|
|
|