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