|
| 1 | +warning: unreachable `pub` item |
| 2 | + --> $DIR/unreachable_pub-pub_crate.rs:24:5 |
| 3 | + | |
| 4 | +24 | pub use std::fmt; |
| 5 | + | ---^^^^^^^^^^^^^^ |
| 6 | + | | |
| 7 | + | help: consider restricting its visibility: `pub(crate)` |
| 8 | + | |
| 9 | +note: lint level defined here |
| 10 | + --> $DIR/unreachable_pub-pub_crate.rs:20:9 |
| 11 | + | |
| 12 | +20 | #![warn(unreachable_pub)] |
| 13 | + | ^^^^^^^^^^^^^^^ |
| 14 | + = help: or consider exporting it for use by other crates |
| 15 | + |
| 16 | +warning: unreachable `pub` item |
| 17 | + --> $DIR/unreachable_pub-pub_crate.rs:26:5 |
| 18 | + | |
| 19 | +26 | pub struct Hydrogen { |
| 20 | + | ---^^^^^^^^^^^^^^^^ |
| 21 | + | | |
| 22 | + | help: consider restricting its visibility: `pub(crate)` |
| 23 | + | |
| 24 | + = help: or consider exporting it for use by other crates |
| 25 | + |
| 26 | +warning: unreachable `pub` field |
| 27 | + --> $DIR/unreachable_pub-pub_crate.rs:28:9 |
| 28 | + | |
| 29 | +28 | pub neutrons: usize, |
| 30 | + | ---^^^^^^^^^^^^^^^^ |
| 31 | + | | |
| 32 | + | help: consider restricting its visibility: `pub(crate)` |
| 33 | + |
| 34 | +warning: unreachable `pub` item |
| 35 | + --> $DIR/unreachable_pub-pub_crate.rs:34:9 |
| 36 | + | |
| 37 | +34 | pub fn count_neutrons(&self) -> usize { self.neutrons } |
| 38 | + | ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 39 | + | | |
| 40 | + | help: consider restricting its visibility: `pub(crate)` |
| 41 | + |
| 42 | +warning: unreachable `pub` item |
| 43 | + --> $DIR/unreachable_pub-pub_crate.rs:38:5 |
| 44 | + | |
| 45 | +38 | pub enum Helium {} |
| 46 | + | ---^^^^^^^^^^^^ |
| 47 | + | | |
| 48 | + | help: consider restricting its visibility: `pub(crate)` |
| 49 | + | |
| 50 | + = help: or consider exporting it for use by other crates |
| 51 | + |
| 52 | +warning: unreachable `pub` item |
| 53 | + --> $DIR/unreachable_pub-pub_crate.rs:39:5 |
| 54 | + | |
| 55 | +39 | pub union Lithium { c1: usize, c2: u8 } |
| 56 | + | ---^^^^^^^^^^^^^^ |
| 57 | + | | |
| 58 | + | help: consider restricting its visibility: `pub(crate)` |
| 59 | + | |
| 60 | + = help: or consider exporting it for use by other crates |
| 61 | + |
| 62 | +warning: unreachable `pub` item |
| 63 | + --> $DIR/unreachable_pub-pub_crate.rs:40:5 |
| 64 | + | |
| 65 | +40 | pub fn beryllium() {} |
| 66 | + | ---^^^^^^^^^^^^^^^ |
| 67 | + | | |
| 68 | + | help: consider restricting its visibility: `pub(crate)` |
| 69 | + | |
| 70 | + = help: or consider exporting it for use by other crates |
| 71 | + |
| 72 | +warning: unreachable `pub` item |
| 73 | + --> $DIR/unreachable_pub-pub_crate.rs:41:5 |
| 74 | + | |
| 75 | +41 | pub trait Boron {} |
| 76 | + | ---^^^^^^^^^^^^ |
| 77 | + | | |
| 78 | + | help: consider restricting its visibility: `pub(crate)` |
| 79 | + | |
| 80 | + = help: or consider exporting it for use by other crates |
| 81 | + |
| 82 | +warning: unreachable `pub` item |
| 83 | + --> $DIR/unreachable_pub-pub_crate.rs:42:5 |
| 84 | + | |
| 85 | +42 | pub const CARBON: usize = 1; |
| 86 | + | ---^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 87 | + | | |
| 88 | + | help: consider restricting its visibility: `pub(crate)` |
| 89 | + | |
| 90 | + = help: or consider exporting it for use by other crates |
| 91 | + |
| 92 | +warning: unreachable `pub` item |
| 93 | + --> $DIR/unreachable_pub-pub_crate.rs:43:5 |
| 94 | + | |
| 95 | +43 | pub static NITROGEN: usize = 2; |
| 96 | + | ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 97 | + | | |
| 98 | + | help: consider restricting its visibility: `pub(crate)` |
| 99 | + | |
| 100 | + = help: or consider exporting it for use by other crates |
| 101 | + |
| 102 | +warning: unreachable `pub` item |
| 103 | + --> $DIR/unreachable_pub-pub_crate.rs:44:5 |
| 104 | + | |
| 105 | +44 | pub type Oxygen = bool; |
| 106 | + | ---^^^^^^^^^^^^^^^^^^^^ |
| 107 | + | | |
| 108 | + | help: consider restricting its visibility: `pub(crate)` |
| 109 | + | |
| 110 | + = help: or consider exporting it for use by other crates |
| 111 | + |
| 112 | +warning: unreachable `pub` item |
| 113 | + --> $DIR/unreachable_pub-pub_crate.rs:47:47 |
| 114 | + | |
| 115 | +47 | ($visibility: vis, $name: ident) => { $visibility struct $name {} } |
| 116 | + | -----------^^^^^^^^^^^^^ |
| 117 | + | | |
| 118 | + | help: consider restricting its visibility: `pub(crate)` |
| 119 | +48 | } |
| 120 | +49 | define_empty_struct_with_visibility!(pub, Fluorine); |
| 121 | + | ---------------------------------------------------- in this macro invocation |
| 122 | + | |
| 123 | + = help: or consider exporting it for use by other crates |
| 124 | + |
| 125 | +warning: unreachable `pub` item |
| 126 | + --> $DIR/unreachable_pub-pub_crate.rs:52:9 |
| 127 | + | |
| 128 | +52 | pub fn catalyze() -> bool; |
| 129 | + | ---^^^^^^^^^^^^^^^^^^^^^^^ |
| 130 | + | | |
| 131 | + | help: consider restricting its visibility: `pub(crate)` |
| 132 | + | |
| 133 | + = help: or consider exporting it for use by other crates |
| 134 | + |
0 commit comments