Skip to content

Commit d40b6cf

Browse files
committed
Update ui lines
1 parent ce03495 commit d40b6cf

File tree

3 files changed

+31
-31
lines changed

3 files changed

+31
-31
lines changed

Diff for: src/test/ui/issues/issue-42755.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: repetition matches empty token tree
2-
--> $DIR/issue-42755.rs:14:7
2+
--> $DIR/issue-42755.rs:13:7
33
|
44
LL | ($($p:vis)*) => {} //~ ERROR repetition matches empty token tree
55
| ^^^^^^^^

Diff for: src/test/ui/lint/unreachable_pub-pub_crate.stderr

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
warning: unreachable `pub` item
2-
--> $DIR/unreachable_pub-pub_crate.rs:26:5
2+
--> $DIR/unreachable_pub-pub_crate.rs:25:5
33
|
44
LL | pub use std::fmt;
55
| ---^^^^^^^^^^^^^^
66
| |
77
| help: consider restricting its visibility: `pub(crate)`
88
|
99
note: lint level defined here
10-
--> $DIR/unreachable_pub-pub_crate.rs:22:9
10+
--> $DIR/unreachable_pub-pub_crate.rs:21:9
1111
|
1212
LL | #![warn(unreachable_pub)]
1313
| ^^^^^^^^^^^^^^^
1414
= help: or consider exporting it for use by other crates
1515

1616
warning: unreachable `pub` item
17-
--> $DIR/unreachable_pub-pub_crate.rs:27:24
17+
--> $DIR/unreachable_pub-pub_crate.rs:26:24
1818
|
1919
LL | pub use std::env::{Args}; // braced-use has different item spans than unbraced
2020
| --- ^^^^
@@ -24,7 +24,7 @@ LL | pub use std::env::{Args}; // braced-use has different item spans than u
2424
= help: or consider exporting it for use by other crates
2525

2626
warning: unreachable `pub` item
27-
--> $DIR/unreachable_pub-pub_crate.rs:29:5
27+
--> $DIR/unreachable_pub-pub_crate.rs:28:5
2828
|
2929
LL | pub struct Hydrogen {
3030
| ---^^^^^^^^^^^^^^^^
@@ -34,23 +34,23 @@ LL | pub struct Hydrogen {
3434
= help: or consider exporting it for use by other crates
3535

3636
warning: unreachable `pub` field
37-
--> $DIR/unreachable_pub-pub_crate.rs:31:9
37+
--> $DIR/unreachable_pub-pub_crate.rs:30:9
3838
|
3939
LL | pub neutrons: usize,
4040
| ---^^^^^^^^^^^^^^^^
4141
| |
4242
| help: consider restricting its visibility: `pub(crate)`
4343

4444
warning: unreachable `pub` item
45-
--> $DIR/unreachable_pub-pub_crate.rs:37:9
45+
--> $DIR/unreachable_pub-pub_crate.rs:36:9
4646
|
4747
LL | pub fn count_neutrons(&self) -> usize { self.neutrons }
4848
| ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4949
| |
5050
| help: consider restricting its visibility: `pub(crate)`
5151

5252
warning: unreachable `pub` item
53-
--> $DIR/unreachable_pub-pub_crate.rs:41:5
53+
--> $DIR/unreachable_pub-pub_crate.rs:40:5
5454
|
5555
LL | pub enum Helium {}
5656
| ---^^^^^^^^^^^^
@@ -60,7 +60,7 @@ LL | pub enum Helium {}
6060
= help: or consider exporting it for use by other crates
6161

6262
warning: unreachable `pub` item
63-
--> $DIR/unreachable_pub-pub_crate.rs:42:5
63+
--> $DIR/unreachable_pub-pub_crate.rs:41:5
6464
|
6565
LL | pub union Lithium { c1: usize, c2: u8 }
6666
| ---^^^^^^^^^^^^^^
@@ -70,7 +70,7 @@ LL | pub union Lithium { c1: usize, c2: u8 }
7070
= help: or consider exporting it for use by other crates
7171

7272
warning: unreachable `pub` item
73-
--> $DIR/unreachable_pub-pub_crate.rs:43:5
73+
--> $DIR/unreachable_pub-pub_crate.rs:42:5
7474
|
7575
LL | pub fn beryllium() {}
7676
| ---^^^^^^^^^^^^^^^
@@ -80,7 +80,7 @@ LL | pub fn beryllium() {}
8080
= help: or consider exporting it for use by other crates
8181

8282
warning: unreachable `pub` item
83-
--> $DIR/unreachable_pub-pub_crate.rs:44:5
83+
--> $DIR/unreachable_pub-pub_crate.rs:43:5
8484
|
8585
LL | pub trait Boron {}
8686
| ---^^^^^^^^^^^^
@@ -90,7 +90,7 @@ LL | pub trait Boron {}
9090
= help: or consider exporting it for use by other crates
9191

9292
warning: unreachable `pub` item
93-
--> $DIR/unreachable_pub-pub_crate.rs:45:5
93+
--> $DIR/unreachable_pub-pub_crate.rs:44:5
9494
|
9595
LL | pub const CARBON: usize = 1;
9696
| ---^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -100,7 +100,7 @@ LL | pub const CARBON: usize = 1;
100100
= help: or consider exporting it for use by other crates
101101

102102
warning: unreachable `pub` item
103-
--> $DIR/unreachable_pub-pub_crate.rs:46:5
103+
--> $DIR/unreachable_pub-pub_crate.rs:45:5
104104
|
105105
LL | pub static NITROGEN: usize = 2;
106106
| ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -110,7 +110,7 @@ LL | pub static NITROGEN: usize = 2;
110110
= help: or consider exporting it for use by other crates
111111

112112
warning: unreachable `pub` item
113-
--> $DIR/unreachable_pub-pub_crate.rs:47:5
113+
--> $DIR/unreachable_pub-pub_crate.rs:46:5
114114
|
115115
LL | pub type Oxygen = bool;
116116
| ---^^^^^^^^^^^^^^^^^^^^
@@ -120,7 +120,7 @@ LL | pub type Oxygen = bool;
120120
= help: or consider exporting it for use by other crates
121121

122122
warning: unreachable `pub` item
123-
--> $DIR/unreachable_pub-pub_crate.rs:50:47
123+
--> $DIR/unreachable_pub-pub_crate.rs:49:47
124124
|
125125
LL | ($visibility: vis, $name: ident) => { $visibility struct $name {} }
126126
| ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -134,7 +134,7 @@ LL | define_empty_struct_with_visibility!(pub, Fluorine);
134134
= help: or consider exporting it for use by other crates
135135

136136
warning: unreachable `pub` item
137-
--> $DIR/unreachable_pub-pub_crate.rs:55:9
137+
--> $DIR/unreachable_pub-pub_crate.rs:54:9
138138
|
139139
LL | pub fn catalyze() -> bool;
140140
| ---^^^^^^^^^^^^^^^^^^^^^^^

Diff for: src/test/ui/lint/unreachable_pub.stderr

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
warning: unreachable `pub` item
2-
--> $DIR/unreachable_pub.rs:21:5
2+
--> $DIR/unreachable_pub.rs:20:5
33
|
44
LL | pub use std::fmt;
55
| ---^^^^^^^^^^^^^^
66
| |
77
| help: consider restricting its visibility: `crate`
88
|
99
note: lint level defined here
10-
--> $DIR/unreachable_pub.rs:17:9
10+
--> $DIR/unreachable_pub.rs:16:9
1111
|
1212
LL | #![warn(unreachable_pub)]
1313
| ^^^^^^^^^^^^^^^
1414
= help: or consider exporting it for use by other crates
1515

1616
warning: unreachable `pub` item
17-
--> $DIR/unreachable_pub.rs:22:24
17+
--> $DIR/unreachable_pub.rs:21:24
1818
|
1919
LL | pub use std::env::{Args}; // braced-use has different item spans than unbraced
2020
| --- ^^^^
@@ -24,7 +24,7 @@ LL | pub use std::env::{Args}; // braced-use has different item spans than u
2424
= help: or consider exporting it for use by other crates
2525

2626
warning: unreachable `pub` item
27-
--> $DIR/unreachable_pub.rs:24:5
27+
--> $DIR/unreachable_pub.rs:23:5
2828
|
2929
LL | pub struct Hydrogen {
3030
| ---^^^^^^^^^^^^^^^^
@@ -34,23 +34,23 @@ LL | pub struct Hydrogen {
3434
= help: or consider exporting it for use by other crates
3535

3636
warning: unreachable `pub` field
37-
--> $DIR/unreachable_pub.rs:26:9
37+
--> $DIR/unreachable_pub.rs:25:9
3838
|
3939
LL | pub neutrons: usize,
4040
| ---^^^^^^^^^^^^^^^^
4141
| |
4242
| help: consider restricting its visibility: `crate`
4343

4444
warning: unreachable `pub` item
45-
--> $DIR/unreachable_pub.rs:32:9
45+
--> $DIR/unreachable_pub.rs:31:9
4646
|
4747
LL | pub fn count_neutrons(&self) -> usize { self.neutrons }
4848
| ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4949
| |
5050
| help: consider restricting its visibility: `crate`
5151

5252
warning: unreachable `pub` item
53-
--> $DIR/unreachable_pub.rs:36:5
53+
--> $DIR/unreachable_pub.rs:35:5
5454
|
5555
LL | pub enum Helium {}
5656
| ---^^^^^^^^^^^^
@@ -60,7 +60,7 @@ LL | pub enum Helium {}
6060
= help: or consider exporting it for use by other crates
6161

6262
warning: unreachable `pub` item
63-
--> $DIR/unreachable_pub.rs:37:5
63+
--> $DIR/unreachable_pub.rs:36:5
6464
|
6565
LL | pub union Lithium { c1: usize, c2: u8 }
6666
| ---^^^^^^^^^^^^^^
@@ -70,7 +70,7 @@ LL | pub union Lithium { c1: usize, c2: u8 }
7070
= help: or consider exporting it for use by other crates
7171

7272
warning: unreachable `pub` item
73-
--> $DIR/unreachable_pub.rs:38:5
73+
--> $DIR/unreachable_pub.rs:37:5
7474
|
7575
LL | pub fn beryllium() {}
7676
| ---^^^^^^^^^^^^^^^
@@ -80,7 +80,7 @@ LL | pub fn beryllium() {}
8080
= help: or consider exporting it for use by other crates
8181

8282
warning: unreachable `pub` item
83-
--> $DIR/unreachable_pub.rs:39:5
83+
--> $DIR/unreachable_pub.rs:38:5
8484
|
8585
LL | pub trait Boron {}
8686
| ---^^^^^^^^^^^^
@@ -90,7 +90,7 @@ LL | pub trait Boron {}
9090
= help: or consider exporting it for use by other crates
9191

9292
warning: unreachable `pub` item
93-
--> $DIR/unreachable_pub.rs:40:5
93+
--> $DIR/unreachable_pub.rs:39:5
9494
|
9595
LL | pub const CARBON: usize = 1;
9696
| ---^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -100,7 +100,7 @@ LL | pub const CARBON: usize = 1;
100100
= help: or consider exporting it for use by other crates
101101

102102
warning: unreachable `pub` item
103-
--> $DIR/unreachable_pub.rs:41:5
103+
--> $DIR/unreachable_pub.rs:40:5
104104
|
105105
LL | pub static NITROGEN: usize = 2;
106106
| ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -110,7 +110,7 @@ LL | pub static NITROGEN: usize = 2;
110110
= help: or consider exporting it for use by other crates
111111

112112
warning: unreachable `pub` item
113-
--> $DIR/unreachable_pub.rs:42:5
113+
--> $DIR/unreachable_pub.rs:41:5
114114
|
115115
LL | pub type Oxygen = bool;
116116
| ---^^^^^^^^^^^^^^^^^^^^
@@ -120,7 +120,7 @@ LL | pub type Oxygen = bool;
120120
= help: or consider exporting it for use by other crates
121121

122122
warning: unreachable `pub` item
123-
--> $DIR/unreachable_pub.rs:45:47
123+
--> $DIR/unreachable_pub.rs:44:47
124124
|
125125
LL | ($visibility: vis, $name: ident) => { $visibility struct $name {} }
126126
| ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -134,7 +134,7 @@ LL | define_empty_struct_with_visibility!(pub, Fluorine);
134134
= help: or consider exporting it for use by other crates
135135

136136
warning: unreachable `pub` item
137-
--> $DIR/unreachable_pub.rs:50:9
137+
--> $DIR/unreachable_pub.rs:49:9
138138
|
139139
LL | pub fn catalyze() -> bool;
140140
| ---^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)