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