2017-11-02 22:50:17 -05:00
|
|
|
warning: unreachable `pub` item
|
2022-07-23 07:42:54 -05:00
|
|
|
--> $DIR/unreachable_pub.rs:8:13
|
2017-11-02 22:50:17 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | pub use std::fmt;
|
2022-07-23 07:42:54 -05:00
|
|
|
| --- ^^^^^^^^
|
2017-11-02 22:50:17 -05:00
|
|
|
| |
|
2022-05-20 20:06:44 -05:00
|
|
|
| help: consider restricting its visibility: `pub(crate)`
|
2017-11-02 22:50:17 -05:00
|
|
|
|
|
2022-09-18 10:55:36 -05:00
|
|
|
= help: or consider exporting it for use by other crates
|
2020-01-22 17:57:38 -06:00
|
|
|
note: the lint level is defined here
|
2022-05-20 20:06:44 -05:00
|
|
|
--> $DIR/unreachable_pub.rs:4:9
|
2017-11-02 22:50:17 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | #![warn(unreachable_pub)]
|
2017-11-02 22:50:17 -05:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
warning: unreachable `pub` item
|
2022-05-20 20:06:44 -05:00
|
|
|
--> $DIR/unreachable_pub.rs:9:24
|
2018-05-06 00:14:33 -05:00
|
|
|
|
|
|
|
|
LL | pub use std::env::{Args}; // braced-use has different item spans than unbraced
|
2018-06-27 23:23:18 -05:00
|
|
|
| --- ^^^^
|
|
|
|
| |
|
2022-05-20 20:06:44 -05:00
|
|
|
| help: consider restricting its visibility: `pub(crate)`
|
2018-05-06 00:14:33 -05:00
|
|
|
|
|
|
|
|
= help: or consider exporting it for use by other crates
|
|
|
|
|
|
|
|
warning: unreachable `pub` item
|
2024-06-05 12:16:43 -05:00
|
|
|
--> $DIR/unreachable_pub.rs:13:5
|
2017-11-02 22:50:17 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | pub struct Hydrogen {
|
2017-11-02 22:50:17 -05:00
|
|
|
| ---^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
2022-05-20 20:06:44 -05:00
|
|
|
| help: consider restricting its visibility: `pub(crate)`
|
2017-11-02 22:50:17 -05:00
|
|
|
|
|
|
|
|
= help: or consider exporting it for use by other crates
|
|
|
|
|
|
|
|
warning: unreachable `pub` item
|
2024-06-05 12:16:43 -05:00
|
|
|
--> $DIR/unreachable_pub.rs:24:9
|
2017-11-02 22:50:17 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | pub fn count_neutrons(&self) -> usize { self.neutrons }
|
2017-11-02 22:50:17 -05:00
|
|
|
| ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
2022-05-20 20:06:44 -05:00
|
|
|
| help: consider restricting its visibility: `pub(crate)`
|
2017-11-02 22:50:17 -05:00
|
|
|
|
|
|
|
warning: unreachable `pub` item
|
2024-06-05 12:16:43 -05:00
|
|
|
--> $DIR/unreachable_pub.rs:33:5
|
2017-11-02 22:50:17 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | pub enum Helium {}
|
2017-11-02 22:50:17 -05:00
|
|
|
| ---^^^^^^^^^^^^
|
|
|
|
| |
|
2022-05-20 20:06:44 -05:00
|
|
|
| help: consider restricting its visibility: `pub(crate)`
|
2017-11-02 22:50:17 -05:00
|
|
|
|
|
|
|
|
= help: or consider exporting it for use by other crates
|
|
|
|
|
|
|
|
warning: unreachable `pub` item
|
2024-06-05 12:16:43 -05:00
|
|
|
--> $DIR/unreachable_pub.rs:34:5
|
2017-11-02 22:50:17 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | pub union Lithium { c1: usize, c2: u8 }
|
2017-11-02 22:50:17 -05:00
|
|
|
| ---^^^^^^^^^^^^^^
|
|
|
|
| |
|
2022-05-20 20:06:44 -05:00
|
|
|
| help: consider restricting its visibility: `pub(crate)`
|
2017-11-02 22:50:17 -05:00
|
|
|
|
|
|
|
|
= help: or consider exporting it for use by other crates
|
|
|
|
|
|
|
|
warning: unreachable `pub` item
|
2024-06-05 12:16:43 -05:00
|
|
|
--> $DIR/unreachable_pub.rs:35:5
|
2017-11-02 22:50:17 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | pub fn beryllium() {}
|
2017-11-02 22:50:17 -05:00
|
|
|
| ---^^^^^^^^^^^^^^^
|
|
|
|
| |
|
2022-05-20 20:06:44 -05:00
|
|
|
| help: consider restricting its visibility: `pub(crate)`
|
2017-11-02 22:50:17 -05:00
|
|
|
|
|
|
|
|
= help: or consider exporting it for use by other crates
|
|
|
|
|
|
|
|
warning: unreachable `pub` item
|
2024-06-05 12:16:43 -05:00
|
|
|
--> $DIR/unreachable_pub.rs:36:5
|
2017-11-02 22:50:17 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | pub trait Boron {}
|
2017-11-02 22:50:17 -05:00
|
|
|
| ---^^^^^^^^^^^^
|
|
|
|
| |
|
2022-05-20 20:06:44 -05:00
|
|
|
| help: consider restricting its visibility: `pub(crate)`
|
2017-11-02 22:50:17 -05:00
|
|
|
|
|
|
|
|
= help: or consider exporting it for use by other crates
|
|
|
|
|
|
|
|
warning: unreachable `pub` item
|
2024-06-05 12:16:43 -05:00
|
|
|
--> $DIR/unreachable_pub.rs:37:5
|
2017-11-02 22:50:17 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | pub const CARBON: usize = 1;
|
2022-07-23 07:42:54 -05:00
|
|
|
| ---^^^^^^^^^^^^^^^^^^^^
|
2017-11-02 22:50:17 -05:00
|
|
|
| |
|
2022-05-20 20:06:44 -05:00
|
|
|
| help: consider restricting its visibility: `pub(crate)`
|
2017-11-02 22:50:17 -05:00
|
|
|
|
|
|
|
|
= help: or consider exporting it for use by other crates
|
|
|
|
|
|
|
|
warning: unreachable `pub` item
|
2024-06-05 12:16:43 -05:00
|
|
|
--> $DIR/unreachable_pub.rs:38:5
|
2017-11-02 22:50:17 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | pub static NITROGEN: usize = 2;
|
2022-07-23 07:42:54 -05:00
|
|
|
| ---^^^^^^^^^^^^^^^^^^^^^^^
|
2017-11-02 22:50:17 -05:00
|
|
|
| |
|
2022-05-20 20:06:44 -05:00
|
|
|
| help: consider restricting its visibility: `pub(crate)`
|
2017-11-02 22:50:17 -05:00
|
|
|
|
|
|
|
|
= help: or consider exporting it for use by other crates
|
|
|
|
|
|
|
|
warning: unreachable `pub` item
|
2024-06-05 12:16:43 -05:00
|
|
|
--> $DIR/unreachable_pub.rs:39:5
|
2017-11-02 22:50:17 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | pub type Oxygen = bool;
|
2022-07-23 07:42:54 -05:00
|
|
|
| ---^^^^^^^^^^^^
|
2017-11-02 22:50:17 -05:00
|
|
|
| |
|
2022-05-20 20:06:44 -05:00
|
|
|
| help: consider restricting its visibility: `pub(crate)`
|
2017-11-02 22:50:17 -05:00
|
|
|
|
|
|
|
|
= help: or consider exporting it for use by other crates
|
|
|
|
|
|
|
|
warning: unreachable `pub` item
|
2024-06-05 12:16:43 -05:00
|
|
|
--> $DIR/unreachable_pub.rs:42:47
|
2017-11-02 22:50:17 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | ($visibility: vis, $name: ident) => { $visibility struct $name {} }
|
2022-07-23 07:42:54 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-11-05 18:00:00 -06:00
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | define_empty_struct_with_visibility!(pub, Fluorine);
|
2021-10-14 13:28:28 -05:00
|
|
|
| ---------------------------------------------------
|
2018-06-27 23:23:18 -05:00
|
|
|
| | |
|
2022-05-20 20:06:44 -05:00
|
|
|
| | help: consider restricting its visibility: `pub(crate)`
|
2018-06-27 23:23:18 -05:00
|
|
|
| in this macro invocation
|
2017-11-02 22:50:17 -05:00
|
|
|
|
|
|
|
|
= help: or consider exporting it for use by other crates
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this warning originates in the macro `define_empty_struct_with_visibility` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2017-11-02 22:50:17 -05:00
|
|
|
|
|
|
|
warning: unreachable `pub` item
|
2024-06-05 12:16:43 -05:00
|
|
|
--> $DIR/unreachable_pub.rs:48:9
|
2017-11-02 22:50:17 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | pub fn catalyze() -> bool;
|
2024-08-07 12:01:34 -05:00
|
|
|
| ---^^^^^^^^^^^^^^^^^^^^^^^
|
2017-11-02 22:50:17 -05:00
|
|
|
| |
|
2022-05-20 20:06:44 -05:00
|
|
|
| help: consider restricting its visibility: `pub(crate)`
|
2017-11-02 22:50:17 -05:00
|
|
|
|
|
|
|
|
= help: or consider exporting it for use by other crates
|
|
|
|
|
2024-06-05 12:16:43 -05:00
|
|
|
warning: 13 warnings emitted
|
2020-03-11 10:30:09 -05:00
|
|
|
|