rust/src/test/ui/lint/unreachable_pub-pub_crate.stderr

135 lines
4.1 KiB
Plaintext
Raw Normal View History

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