]>
Commit | Line | Data |
---|---|---|
abe05a73 | 1 | warning: unreachable `pub` item |
0731742a | 2 | --> $DIR/unreachable_pub-pub_crate.rs:15:5 |
abe05a73 | 3 | | |
0531ce1d | 4 | LL | pub use std::fmt; |
abe05a73 XL |
5 | | ---^^^^^^^^^^^^^^ |
6 | | | | |
7 | | help: consider restricting its visibility: `pub(crate)` | |
8 | | | |
9 | note: lint level defined here | |
0731742a | 10 | --> $DIR/unreachable_pub-pub_crate.rs:11: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 | |
0731742a | 17 | --> $DIR/unreachable_pub-pub_crate.rs:16:24 |
94b46f34 XL |
18 | | |
19 | LL | pub use std::env::{Args}; // braced-use has different item spans than unbraced | |
8faf50e0 XL |
20 | | --- ^^^^ |
21 | | | | |
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 | |
0731742a | 27 | --> $DIR/unreachable_pub-pub_crate.rs:18:5 |
abe05a73 | 28 | | |
0531ce1d | 29 | LL | pub struct Hydrogen { |
abe05a73 XL |
30 | | ---^^^^^^^^^^^^^^^^ |
31 | | | | |
32 | | help: consider restricting its visibility: `pub(crate)` | |
33 | | | |
34 | = help: or consider exporting it for use by other crates | |
35 | ||
36 | warning: unreachable `pub` field | |
0731742a | 37 | --> $DIR/unreachable_pub-pub_crate.rs:20:9 |
abe05a73 | 38 | | |
0531ce1d | 39 | LL | pub neutrons: usize, |
abe05a73 XL |
40 | | ---^^^^^^^^^^^^^^^^ |
41 | | | | |
42 | | help: consider restricting its visibility: `pub(crate)` | |
43 | ||
44 | warning: unreachable `pub` item | |
0731742a | 45 | --> $DIR/unreachable_pub-pub_crate.rs:26:9 |
abe05a73 | 46 | | |
0531ce1d | 47 | LL | pub fn count_neutrons(&self) -> usize { self.neutrons } |
abe05a73 XL |
48 | | ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
49 | | | | |
50 | | help: consider restricting its visibility: `pub(crate)` | |
51 | ||
52 | warning: unreachable `pub` item | |
0731742a | 53 | --> $DIR/unreachable_pub-pub_crate.rs:30:5 |
abe05a73 | 54 | | |
0531ce1d | 55 | LL | pub enum Helium {} |
abe05a73 XL |
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 | |
0731742a | 63 | --> $DIR/unreachable_pub-pub_crate.rs:31:5 |
abe05a73 | 64 | | |
0531ce1d | 65 | LL | pub union Lithium { c1: usize, c2: u8 } |
abe05a73 XL |
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 | |
0731742a | 73 | --> $DIR/unreachable_pub-pub_crate.rs:32:5 |
abe05a73 | 74 | | |
0531ce1d | 75 | LL | pub fn beryllium() {} |
abe05a73 XL |
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 | |
0731742a | 83 | --> $DIR/unreachable_pub-pub_crate.rs:33:5 |
abe05a73 | 84 | | |
0531ce1d | 85 | LL | pub trait Boron {} |
abe05a73 XL |
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 | |
0731742a | 93 | --> $DIR/unreachable_pub-pub_crate.rs:34:5 |
abe05a73 | 94 | | |
0531ce1d | 95 | LL | pub const CARBON: usize = 1; |
abe05a73 XL |
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 | |
0731742a | 103 | --> $DIR/unreachable_pub-pub_crate.rs:35:5 |
abe05a73 | 104 | | |
0531ce1d | 105 | LL | pub static NITROGEN: usize = 2; |
abe05a73 XL |
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 | |
0731742a | 113 | --> $DIR/unreachable_pub-pub_crate.rs:36:5 |
abe05a73 | 114 | | |
0531ce1d | 115 | LL | pub type Oxygen = bool; |
abe05a73 XL |
116 | | ---^^^^^^^^^^^^^^^^^^^^ |
117 | | | | |
118 | | help: consider restricting its visibility: `pub(crate)` | |
119 | | | |
120 | = help: or consider exporting it for use by other crates | |
121 | ||
122 | warning: unreachable `pub` item | |
0731742a | 123 | --> $DIR/unreachable_pub-pub_crate.rs:39:47 |
abe05a73 | 124 | | |
0531ce1d | 125 | LL | ($visibility: vis, $name: ident) => { $visibility struct $name {} } |
8faf50e0 | 126 | | ^^^^^^^^^^^^^^^^^^^^^^^^ |
0531ce1d XL |
127 | LL | } |
128 | LL | define_empty_struct_with_visibility!(pub, Fluorine); | |
8faf50e0 XL |
129 | | ---------------------------------------------------- |
130 | | | | | |
131 | | | help: consider restricting its visibility: `pub(crate)` | |
132 | | in this macro invocation | |
abe05a73 XL |
133 | | |
134 | = help: or consider exporting it for use by other crates | |
135 | ||
136 | warning: unreachable `pub` item | |
0731742a | 137 | --> $DIR/unreachable_pub-pub_crate.rs:44:9 |
abe05a73 | 138 | | |
0531ce1d | 139 | LL | pub fn catalyze() -> bool; |
abe05a73 XL |
140 | | ---^^^^^^^^^^^^^^^^^^^^^^^ |
141 | | | | |
142 | | help: consider restricting its visibility: `pub(crate)` | |
143 | | | |
144 | = help: or consider exporting it for use by other crates | |
145 |