]> git.proxmox.com Git - rustc.git/blame - src/test/ui/lint/unreachable_pub.stderr
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / ui / lint / unreachable_pub.stderr
CommitLineData
abe05a73 1warning: unreachable `pub` item
064997fb 2 --> $DIR/unreachable_pub.rs:8:13
abe05a73 3 |
0531ce1d 4LL | pub use std::fmt;
064997fb 5 | --- ^^^^^^^^
abe05a73 6 | |
923072b8 7 | help: consider restricting its visibility: `pub(crate)`
abe05a73 8 |
74b04a01 9note: the lint level is defined here
923072b8 10 --> $DIR/unreachable_pub.rs:4:9
abe05a73 11 |
0531ce1d 12LL | #![warn(unreachable_pub)]
abe05a73
XL
13 | ^^^^^^^^^^^^^^^
14 = help: or consider exporting it for use by other crates
15
16warning: unreachable `pub` item
923072b8 17 --> $DIR/unreachable_pub.rs:9:24
94b46f34
XL
18 |
19LL | 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
26warning: unreachable `pub` item
923072b8 27 --> $DIR/unreachable_pub.rs:12:5
abe05a73 28 |
0531ce1d 29LL | 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
36warning: unreachable `pub` field
923072b8 37 --> $DIR/unreachable_pub.rs:14:9
abe05a73 38 |
0531ce1d 39LL | pub neutrons: usize,
abe05a73
XL
40 | ---^^^^^^^^^^^^^^^^
41 | |
923072b8 42 | help: consider restricting its visibility: `pub(crate)`
abe05a73
XL
43
44warning: unreachable `pub` item
923072b8 45 --> $DIR/unreachable_pub.rs:20:9
abe05a73 46 |
0531ce1d 47LL | pub fn count_neutrons(&self) -> usize { self.neutrons }
abe05a73
XL
48 | ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
49 | |
923072b8 50 | help: consider restricting its visibility: `pub(crate)`
abe05a73
XL
51
52warning: unreachable `pub` item
923072b8 53 --> $DIR/unreachable_pub.rs:29:5
abe05a73 54 |
0531ce1d 55LL | 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
62warning: unreachable `pub` item
923072b8 63 --> $DIR/unreachable_pub.rs:30:5
abe05a73 64 |
0531ce1d 65LL | 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
72warning: unreachable `pub` item
923072b8 73 --> $DIR/unreachable_pub.rs:31:5
abe05a73 74 |
0531ce1d 75LL | 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
82warning: unreachable `pub` item
923072b8 83 --> $DIR/unreachable_pub.rs:32:5
abe05a73 84 |
0531ce1d 85LL | 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
92warning: unreachable `pub` item
923072b8 93 --> $DIR/unreachable_pub.rs:33:5
abe05a73 94 |
0531ce1d 95LL | 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
102warning: unreachable `pub` item
923072b8 103 --> $DIR/unreachable_pub.rs:34:5
abe05a73 104 |
0531ce1d 105LL | 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
112warning: unreachable `pub` item
923072b8 113 --> $DIR/unreachable_pub.rs:35:5
abe05a73 114 |
0531ce1d 115LL | 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
122warning: unreachable `pub` item
923072b8 123 --> $DIR/unreachable_pub.rs:38:47
abe05a73 124 |
0531ce1d 125LL | ($visibility: vis, $name: ident) => { $visibility struct $name {} }
064997fb 126 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
60c5eb7d 127...
0531ce1d 128LL | 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
137warning: unreachable `pub` item
923072b8 138 --> $DIR/unreachable_pub.rs:44:9
abe05a73 139 |
0531ce1d 140LL | 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
147warning: 14 warnings emitted
148