1
1
warning: unreachable `pub` item
2
- --> $DIR/unreachable_pub-pub_crate.rs:26 :5
2
+ --> $DIR/unreachable_pub-pub_crate.rs:25 :5
3
3
|
4
4
LL | 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:22 :9
10
+ --> $DIR/unreachable_pub-pub_crate.rs:21 :9
11
11
|
12
12
LL | #![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:27 :24
17
+ --> $DIR/unreachable_pub-pub_crate.rs:26 :24
18
18
|
19
19
LL | pub use std::env::{Args}; // braced-use has different item spans than unbraced
20
20
| --- ^^^^
@@ -24,7 +24,7 @@ LL | pub use std::env::{Args}; // braced-use has different item spans than u
24
24
= help: or consider exporting it for use by other crates
25
25
26
26
warning: unreachable `pub` item
27
- --> $DIR/unreachable_pub-pub_crate.rs:29 :5
27
+ --> $DIR/unreachable_pub-pub_crate.rs:28 :5
28
28
|
29
29
LL | pub struct Hydrogen {
30
30
| ---^^^^^^^^^^^^^^^^
@@ -34,23 +34,23 @@ LL | pub struct Hydrogen {
34
34
= help: or consider exporting it for use by other crates
35
35
36
36
warning: unreachable `pub` field
37
- --> $DIR/unreachable_pub-pub_crate.rs:31 :9
37
+ --> $DIR/unreachable_pub-pub_crate.rs:30 :9
38
38
|
39
39
LL | pub neutrons: usize,
40
40
| ---^^^^^^^^^^^^^^^^
41
41
| |
42
42
| help: consider restricting its visibility: `pub(crate)`
43
43
44
44
warning: unreachable `pub` item
45
- --> $DIR/unreachable_pub-pub_crate.rs:37 :9
45
+ --> $DIR/unreachable_pub-pub_crate.rs:36 :9
46
46
|
47
47
LL | pub fn count_neutrons(&self) -> usize { self.neutrons }
48
48
| ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
49
49
| |
50
50
| help: consider restricting its visibility: `pub(crate)`
51
51
52
52
warning: unreachable `pub` item
53
- --> $DIR/unreachable_pub-pub_crate.rs:41 :5
53
+ --> $DIR/unreachable_pub-pub_crate.rs:40 :5
54
54
|
55
55
LL | pub enum Helium {}
56
56
| ---^^^^^^^^^^^^
@@ -60,7 +60,7 @@ LL | pub enum Helium {}
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:42 :5
63
+ --> $DIR/unreachable_pub-pub_crate.rs:41 :5
64
64
|
65
65
LL | pub union Lithium { c1: usize, c2: u8 }
66
66
| ---^^^^^^^^^^^^^^
@@ -70,7 +70,7 @@ LL | pub union Lithium { c1: usize, c2: u8 }
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:43 :5
73
+ --> $DIR/unreachable_pub-pub_crate.rs:42 :5
74
74
|
75
75
LL | pub fn beryllium() {}
76
76
| ---^^^^^^^^^^^^^^^
@@ -80,7 +80,7 @@ LL | pub fn beryllium() {}
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:44 :5
83
+ --> $DIR/unreachable_pub-pub_crate.rs:43 :5
84
84
|
85
85
LL | pub trait Boron {}
86
86
| ---^^^^^^^^^^^^
@@ -90,7 +90,7 @@ LL | pub trait Boron {}
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:45 :5
93
+ --> $DIR/unreachable_pub-pub_crate.rs:44 :5
94
94
|
95
95
LL | pub const CARBON: usize = 1;
96
96
| ---^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -100,7 +100,7 @@ LL | pub const CARBON: usize = 1;
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:46 :5
103
+ --> $DIR/unreachable_pub-pub_crate.rs:45 :5
104
104
|
105
105
LL | pub static NITROGEN: usize = 2;
106
106
| ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -110,7 +110,7 @@ LL | pub static NITROGEN: usize = 2;
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 :5
113
+ --> $DIR/unreachable_pub-pub_crate.rs:46 :5
114
114
|
115
115
LL | pub type Oxygen = bool;
116
116
| ---^^^^^^^^^^^^^^^^^^^^
@@ -120,7 +120,7 @@ LL | pub type Oxygen = bool;
120
120
= help: or consider exporting it for use by other crates
121
121
122
122
warning: unreachable `pub` item
123
- --> $DIR/unreachable_pub-pub_crate.rs:50 :47
123
+ --> $DIR/unreachable_pub-pub_crate.rs:49 :47
124
124
|
125
125
LL | ($visibility: vis, $name: ident) => { $visibility struct $name {} }
126
126
| ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -134,7 +134,7 @@ LL | define_empty_struct_with_visibility!(pub, Fluorine);
134
134
= help: or consider exporting it for use by other crates
135
135
136
136
warning: unreachable `pub` item
137
- --> $DIR/unreachable_pub-pub_crate.rs:55 :9
137
+ --> $DIR/unreachable_pub-pub_crate.rs:54 :9
138
138
|
139
139
LL | pub fn catalyze() -> bool;
140
140
| ---^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments