warning: unreachable `pub` item
- --> $DIR/unreachable_pub.rs:21:5
+ --> $DIR/unreachable_pub.rs:10:5
|
-21 | pub use std::fmt;
+LL | pub use std::fmt;
| ---^^^^^^^^^^^^^^
| |
| help: consider restricting its visibility: `crate`
|
-note: lint level defined here
- --> $DIR/unreachable_pub.rs:17:9
+note: the lint level is defined here
+ --> $DIR/unreachable_pub.rs:6:9
|
-17 | #![warn(unreachable_pub)]
+LL | #![warn(unreachable_pub)]
| ^^^^^^^^^^^^^^^
= help: or consider exporting it for use by other crates
warning: unreachable `pub` item
- --> $DIR/unreachable_pub.rs:23:5
+ --> $DIR/unreachable_pub.rs:11:24
|
-23 | pub struct Hydrogen {
+LL | pub use std::env::{Args}; // braced-use has different item spans than unbraced
+ | --- ^^^^
+ | |
+ | help: consider restricting its visibility: `crate`
+ |
+ = help: or consider exporting it for use by other crates
+
+warning: unreachable `pub` item
+ --> $DIR/unreachable_pub.rs:14:5
+ |
+LL | pub struct Hydrogen {
| ---^^^^^^^^^^^^^^^^
| |
| help: consider restricting its visibility: `crate`
= help: or consider exporting it for use by other crates
warning: unreachable `pub` field
- --> $DIR/unreachable_pub.rs:25:9
+ --> $DIR/unreachable_pub.rs:16:9
|
-25 | pub neutrons: usize,
+LL | pub neutrons: usize,
| ---^^^^^^^^^^^^^^^^
| |
| help: consider restricting its visibility: `crate`
warning: unreachable `pub` item
- --> $DIR/unreachable_pub.rs:31:9
+ --> $DIR/unreachable_pub.rs:22:9
|
-31 | pub fn count_neutrons(&self) -> usize { self.neutrons }
+LL | pub fn count_neutrons(&self) -> usize { self.neutrons }
| ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| help: consider restricting its visibility: `crate`
warning: unreachable `pub` item
- --> $DIR/unreachable_pub.rs:35:5
+ --> $DIR/unreachable_pub.rs:26:5
|
-35 | pub enum Helium {}
+LL | pub enum Helium {}
| ---^^^^^^^^^^^^
| |
| help: consider restricting its visibility: `crate`
= help: or consider exporting it for use by other crates
warning: unreachable `pub` item
- --> $DIR/unreachable_pub.rs:36:5
+ --> $DIR/unreachable_pub.rs:27:5
|
-36 | pub union Lithium { c1: usize, c2: u8 }
+LL | pub union Lithium { c1: usize, c2: u8 }
| ---^^^^^^^^^^^^^^
| |
| help: consider restricting its visibility: `crate`
= help: or consider exporting it for use by other crates
warning: unreachable `pub` item
- --> $DIR/unreachable_pub.rs:37:5
+ --> $DIR/unreachable_pub.rs:28:5
|
-37 | pub fn beryllium() {}
+LL | pub fn beryllium() {}
| ---^^^^^^^^^^^^^^^
| |
| help: consider restricting its visibility: `crate`
= help: or consider exporting it for use by other crates
warning: unreachable `pub` item
- --> $DIR/unreachable_pub.rs:38:5
+ --> $DIR/unreachable_pub.rs:29:5
|
-38 | pub trait Boron {}
+LL | pub trait Boron {}
| ---^^^^^^^^^^^^
| |
| help: consider restricting its visibility: `crate`
= help: or consider exporting it for use by other crates
warning: unreachable `pub` item
- --> $DIR/unreachable_pub.rs:39:5
+ --> $DIR/unreachable_pub.rs:30:5
|
-39 | pub const CARBON: usize = 1;
+LL | pub const CARBON: usize = 1;
| ---^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| help: consider restricting its visibility: `crate`
= help: or consider exporting it for use by other crates
warning: unreachable `pub` item
- --> $DIR/unreachable_pub.rs:40:5
+ --> $DIR/unreachable_pub.rs:31:5
|
-40 | pub static NITROGEN: usize = 2;
+LL | pub static NITROGEN: usize = 2;
| ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| help: consider restricting its visibility: `crate`
= help: or consider exporting it for use by other crates
warning: unreachable `pub` item
- --> $DIR/unreachable_pub.rs:41:5
+ --> $DIR/unreachable_pub.rs:32:5
|
-41 | pub type Oxygen = bool;
+LL | pub type Oxygen = bool;
| ---^^^^^^^^^^^^^^^^^^^^
| |
| help: consider restricting its visibility: `crate`
= help: or consider exporting it for use by other crates
warning: unreachable `pub` item
- --> $DIR/unreachable_pub.rs:44:47
+ --> $DIR/unreachable_pub.rs:35:47
|
-44 | ($visibility: vis, $name: ident) => { $visibility struct $name {} }
- | -----------^^^^^^^^^^^^^
- | |
- | help: consider restricting its visibility: `crate`
-45 | }
-46 | define_empty_struct_with_visibility!(pub, Fluorine);
- | ---------------------------------------------------- in this macro invocation
+LL | ($visibility: vis, $name: ident) => { $visibility struct $name {} }
+ | ^^^^^^^^^^^^^^^^^^^^^^^^
+...
+LL | define_empty_struct_with_visibility!(pub, Fluorine);
+ | ----------------------------------------------------
+ | | |
+ | | help: consider restricting its visibility: `crate`
+ | in this macro invocation
|
= help: or consider exporting it for use by other crates
+ = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
warning: unreachable `pub` item
- --> $DIR/unreachable_pub.rs:49:9
+ --> $DIR/unreachable_pub.rs:41:9
|
-49 | pub fn catalyze() -> bool;
+LL | pub fn catalyze() -> bool;
| ---^^^^^^^^^^^^^^^^^^^^^^^
| |
| help: consider restricting its visibility: `crate`
|
= help: or consider exporting it for use by other crates
+warning: 14 warnings emitted
+