]>
Commit | Line | Data |
---|---|---|
abe05a73 | 1 | warning: unreachable `pub` item |
064997fb | 2 | --> $DIR/unreachable_pub.rs:8:13 |
abe05a73 | 3 | | |
0531ce1d | 4 | LL | pub use std::fmt; |
064997fb | 5 | | --- ^^^^^^^^ |
abe05a73 | 6 | | | |
923072b8 | 7 | | help: consider restricting its visibility: `pub(crate)` |
abe05a73 | 8 | | |
74b04a01 | 9 | note: the lint level is defined here |
923072b8 | 10 | --> $DIR/unreachable_pub.rs:4:9 |
abe05a73 | 11 | | |
0531ce1d | 12 | LL | #![warn(unreachable_pub)] |
abe05a73 XL |
13 | | ^^^^^^^^^^^^^^^ |
14 | = help: or consider exporting it for use by other crates | |
15 | ||
16 | warning: unreachable `pub` item | |
923072b8 | 17 | --> $DIR/unreachable_pub.rs:9:24 |
94b46f34 XL |
18 | | |
19 | LL | pub use std::env::{Args}; // braced-use has different item spans than unbraced | |
8faf50e0 XL |
20 | | --- ^^^^ |
21 | | | | |
923072b8 | 22 | | help: consider restricting its visibility: `pub(crate)` |
94b46f34 XL |
23 | | |
24 | = help: or consider exporting it for use by other crates | |
25 | ||
26 | warning: unreachable `pub` item | |
923072b8 | 27 | --> $DIR/unreachable_pub.rs:12:5 |
abe05a73 | 28 | | |
0531ce1d | 29 | LL | pub struct Hydrogen { |
abe05a73 XL |
30 | | ---^^^^^^^^^^^^^^^^ |
31 | | | | |
923072b8 | 32 | | help: consider restricting its visibility: `pub(crate)` |
abe05a73 XL |
33 | | |
34 | = help: or consider exporting it for use by other crates | |
35 | ||
36 | warning: unreachable `pub` field | |
923072b8 | 37 | --> $DIR/unreachable_pub.rs:14:9 |
abe05a73 | 38 | | |
0531ce1d | 39 | LL | pub neutrons: usize, |
abe05a73 XL |
40 | | ---^^^^^^^^^^^^^^^^ |
41 | | | | |
923072b8 | 42 | | help: consider restricting its visibility: `pub(crate)` |
abe05a73 XL |
43 | |
44 | warning: unreachable `pub` item | |
923072b8 | 45 | --> $DIR/unreachable_pub.rs:20:9 |
abe05a73 | 46 | | |
0531ce1d | 47 | LL | pub fn count_neutrons(&self) -> usize { self.neutrons } |
abe05a73 XL |
48 | | ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
49 | | | | |
923072b8 | 50 | | help: consider restricting its visibility: `pub(crate)` |
abe05a73 XL |
51 | |
52 | warning: unreachable `pub` item | |
923072b8 | 53 | --> $DIR/unreachable_pub.rs:29:5 |
abe05a73 | 54 | | |
0531ce1d | 55 | LL | pub enum Helium {} |
abe05a73 XL |
56 | | ---^^^^^^^^^^^^ |
57 | | | | |
923072b8 | 58 | | help: consider restricting its visibility: `pub(crate)` |
abe05a73 XL |
59 | | |
60 | = help: or consider exporting it for use by other crates | |
61 | ||
62 | warning: unreachable `pub` item | |
923072b8 | 63 | --> $DIR/unreachable_pub.rs:30:5 |
abe05a73 | 64 | | |
0531ce1d | 65 | LL | pub union Lithium { c1: usize, c2: u8 } |
abe05a73 XL |
66 | | ---^^^^^^^^^^^^^^ |
67 | | | | |
923072b8 | 68 | | help: consider restricting its visibility: `pub(crate)` |
abe05a73 XL |
69 | | |
70 | = help: or consider exporting it for use by other crates | |
71 | ||
72 | warning: unreachable `pub` item | |
923072b8 | 73 | --> $DIR/unreachable_pub.rs:31:5 |
abe05a73 | 74 | | |
0531ce1d | 75 | LL | pub fn beryllium() {} |
abe05a73 XL |
76 | | ---^^^^^^^^^^^^^^^ |
77 | | | | |
923072b8 | 78 | | help: consider restricting its visibility: `pub(crate)` |
abe05a73 XL |
79 | | |
80 | = help: or consider exporting it for use by other crates | |
81 | ||
82 | warning: unreachable `pub` item | |
923072b8 | 83 | --> $DIR/unreachable_pub.rs:32:5 |
abe05a73 | 84 | | |
0531ce1d | 85 | LL | pub trait Boron {} |
abe05a73 XL |
86 | | ---^^^^^^^^^^^^ |
87 | | | | |
923072b8 | 88 | | help: consider restricting its visibility: `pub(crate)` |
abe05a73 XL |
89 | | |
90 | = help: or consider exporting it for use by other crates | |
91 | ||
92 | warning: unreachable `pub` item | |
923072b8 | 93 | --> $DIR/unreachable_pub.rs:33:5 |
abe05a73 | 94 | | |
0531ce1d | 95 | LL | pub const CARBON: usize = 1; |
064997fb | 96 | | ---^^^^^^^^^^^^^^^^^^^^ |
abe05a73 | 97 | | | |
923072b8 | 98 | | help: consider restricting its visibility: `pub(crate)` |
abe05a73 XL |
99 | | |
100 | = help: or consider exporting it for use by other crates | |
101 | ||
102 | warning: unreachable `pub` item | |
923072b8 | 103 | --> $DIR/unreachable_pub.rs:34:5 |
abe05a73 | 104 | | |
0531ce1d | 105 | LL | pub static NITROGEN: usize = 2; |
064997fb | 106 | | ---^^^^^^^^^^^^^^^^^^^^^^^ |
abe05a73 | 107 | | | |
923072b8 | 108 | | help: consider restricting its visibility: `pub(crate)` |
abe05a73 XL |
109 | | |
110 | = help: or consider exporting it for use by other crates | |
111 | ||
112 | warning: unreachable `pub` item | |
923072b8 | 113 | --> $DIR/unreachable_pub.rs:35:5 |
abe05a73 | 114 | | |
0531ce1d | 115 | LL | pub type Oxygen = bool; |
064997fb | 116 | | ---^^^^^^^^^^^^ |
abe05a73 | 117 | | | |
923072b8 | 118 | | help: consider restricting its visibility: `pub(crate)` |
abe05a73 XL |
119 | | |
120 | = help: or consider exporting it for use by other crates | |
121 | ||
122 | warning: unreachable `pub` item | |
923072b8 | 123 | --> $DIR/unreachable_pub.rs:38:47 |
abe05a73 | 124 | | |
0531ce1d | 125 | LL | ($visibility: vis, $name: ident) => { $visibility struct $name {} } |
064997fb | 126 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
60c5eb7d | 127 | ... |
0531ce1d | 128 | LL | define_empty_struct_with_visibility!(pub, Fluorine); |
c295e0f8 | 129 | | --------------------------------------------------- |
8faf50e0 | 130 | | | | |
923072b8 | 131 | | | help: consider restricting its visibility: `pub(crate)` |
8faf50e0 | 132 | | in this macro invocation |
abe05a73 XL |
133 | | |
134 | = help: or consider exporting it for use by other crates | |
17df50a5 | 135 | = note: this warning originates in the macro `define_empty_struct_with_visibility` (in Nightly builds, run with -Z macro-backtrace for more info) |
abe05a73 XL |
136 | |
137 | warning: unreachable `pub` item | |
923072b8 | 138 | --> $DIR/unreachable_pub.rs:44:9 |
abe05a73 | 139 | | |
0531ce1d | 140 | LL | pub fn catalyze() -> bool; |
064997fb | 141 | | ---^^^^^^^^^^^^^^^^^^^^^^ |
abe05a73 | 142 | | | |
923072b8 | 143 | | help: consider restricting its visibility: `pub(crate)` |
abe05a73 XL |
144 | | |
145 | = help: or consider exporting it for use by other crates | |
146 | ||
ba9703b0 XL |
147 | warning: 14 warnings emitted |
148 |