Skip to content

Commit 2ad5bf0

Browse files
committed
Update ui tests' line numbers.
1 parent 76d9b30 commit 2ad5bf0

16 files changed

+192
-192
lines changed
+8-8
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
warning: unreachable pattern
2-
--> $DIR/issue-43253.rs:37:9
2+
--> $DIR/issue-43253.rs:39:9
33
|
4-
37 | 9 => {},
4+
39 | 9 => {},
55
| ^
66
|
77
note: lint level defined here
8-
--> $DIR/issue-43253.rs:12:9
8+
--> $DIR/issue-43253.rs:14:9
99
|
10-
12 | #![warn(unreachable_patterns)]
10+
14 | #![warn(unreachable_patterns)]
1111
| ^^^^^^^^^^^^^^^^^^^^
1212

1313
warning: unreachable pattern
14-
--> $DIR/issue-43253.rs:43:9
14+
--> $DIR/issue-43253.rs:45:9
1515
|
16-
43 | 8...9 => {},
16+
45 | 8...9 => {},
1717
| ^^^^^
1818

1919
warning: unreachable pattern
20-
--> $DIR/issue-43253.rs:49:9
20+
--> $DIR/issue-43253.rs:51:9
2121
|
22-
49 | 9...9 => {},
22+
51 | 9...9 => {},
2323
| ^^^^^
2424

src/test/ui/codemap_tests/unicode_3.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
warning: denote infinite loops with `loop { ... }`
2-
--> $DIR/unicode_3.rs:12:45
2+
--> $DIR/unicode_3.rs:14:45
33
|
4-
12 | let s = "ZͨA͑ͦ͒͋ͤ͑̚L̄͑͋Ĝͨͥ̿͒̽̈́Oͥ͛ͭ!̏"; while true { break; }
4+
14 | let s = "ZͨA͑ͦ͒͋ͤ͑̚L̄͑͋Ĝͨͥ̿͒̽̈́Oͥ͛ͭ!̏"; while true { break; }
55
| ----------^^^^^^^^^^^
66
| |
77
| help: use `loop`

src/test/ui/lint/command-line-lint-group-warn.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
warning: variable `_InappropriateCamelCasing` should have a snake case name such as `_inappropriate_camel_casing`
2-
--> $DIR/command-line-lint-group-warn.rs:14:9
2+
--> $DIR/command-line-lint-group-warn.rs:15:9
33
|
4-
14 | let _InappropriateCamelCasing = true;
4+
15 | let _InappropriateCamelCasing = true;
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
77
= note: `-W non-snake-case` implied by `-W bad-style`

src/test/ui/lint/not_found.stderr

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
warning: unknown lint: `FOO_BAR`
2-
--> $DIR/not_found.rs:14:9
2+
--> $DIR/not_found.rs:16:9
33
|
4-
14 | #[allow(FOO_BAR)]
4+
16 | #[allow(FOO_BAR)]
55
| ^^^^^^^
66
|
77
= note: #[warn(unknown_lints)] on by default
88

99
warning: unknown lint: `DEAD_CODE`
10-
--> $DIR/not_found.rs:16:8
10+
--> $DIR/not_found.rs:18:8
1111
|
12-
16 | #[warn(DEAD_CODE)]
12+
18 | #[warn(DEAD_CODE)]
1313
| ^^^^^^^^^ help: lowercase the lint name: `dead_code`
1414

1515
warning: unknown lint: `Warnings`
16-
--> $DIR/not_found.rs:18:8
16+
--> $DIR/not_found.rs:20:8
1717
|
18-
18 | #[deny(Warnings)]
18+
20 | #[deny(Warnings)]
1919
| ^^^^^^^^ help: lowercase the lint name: `warnings`
2020

src/test/ui/lint/unreachable_pub-pub_crate.stderr

+30-30
Original file line numberDiff line numberDiff line change
@@ -1,131 +1,131 @@
11
warning: unreachable `pub` item
2-
--> $DIR/unreachable_pub-pub_crate.rs:24:5
2+
--> $DIR/unreachable_pub-pub_crate.rs:26:5
33
|
4-
24 | pub use std::fmt;
4+
26 | 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:20:9
10+
--> $DIR/unreachable_pub-pub_crate.rs:22:9
1111
|
12-
20 | #![warn(unreachable_pub)]
12+
22 | #![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:26:5
17+
--> $DIR/unreachable_pub-pub_crate.rs:28:5
1818
|
19-
26 | pub struct Hydrogen {
19+
28 | pub struct Hydrogen {
2020
| ---^^^^^^^^^^^^^^^^
2121
| |
2222
| help: consider restricting its visibility: `pub(crate)`
2323
|
2424
= help: or consider exporting it for use by other crates
2525

2626
warning: unreachable `pub` field
27-
--> $DIR/unreachable_pub-pub_crate.rs:28:9
27+
--> $DIR/unreachable_pub-pub_crate.rs:30:9
2828
|
29-
28 | pub neutrons: usize,
29+
30 | pub neutrons: usize,
3030
| ---^^^^^^^^^^^^^^^^
3131
| |
3232
| help: consider restricting its visibility: `pub(crate)`
3333

3434
warning: unreachable `pub` item
35-
--> $DIR/unreachable_pub-pub_crate.rs:34:9
35+
--> $DIR/unreachable_pub-pub_crate.rs:36:9
3636
|
37-
34 | pub fn count_neutrons(&self) -> usize { self.neutrons }
37+
36 | pub fn count_neutrons(&self) -> usize { self.neutrons }
3838
| ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3939
| |
4040
| help: consider restricting its visibility: `pub(crate)`
4141

4242
warning: unreachable `pub` item
43-
--> $DIR/unreachable_pub-pub_crate.rs:38:5
43+
--> $DIR/unreachable_pub-pub_crate.rs:40:5
4444
|
45-
38 | pub enum Helium {}
45+
40 | pub enum Helium {}
4646
| ---^^^^^^^^^^^^
4747
| |
4848
| help: consider restricting its visibility: `pub(crate)`
4949
|
5050
= help: or consider exporting it for use by other crates
5151

5252
warning: unreachable `pub` item
53-
--> $DIR/unreachable_pub-pub_crate.rs:39:5
53+
--> $DIR/unreachable_pub-pub_crate.rs:41:5
5454
|
55-
39 | pub union Lithium { c1: usize, c2: u8 }
55+
41 | pub union Lithium { c1: usize, c2: u8 }
5656
| ---^^^^^^^^^^^^^^
5757
| |
5858
| help: consider restricting its visibility: `pub(crate)`
5959
|
6060
= help: or consider exporting it for use by other crates
6161

6262
warning: unreachable `pub` item
63-
--> $DIR/unreachable_pub-pub_crate.rs:40:5
63+
--> $DIR/unreachable_pub-pub_crate.rs:42:5
6464
|
65-
40 | pub fn beryllium() {}
65+
42 | pub fn beryllium() {}
6666
| ---^^^^^^^^^^^^^^^
6767
| |
6868
| help: consider restricting its visibility: `pub(crate)`
6969
|
7070
= help: or consider exporting it for use by other crates
7171

7272
warning: unreachable `pub` item
73-
--> $DIR/unreachable_pub-pub_crate.rs:41:5
73+
--> $DIR/unreachable_pub-pub_crate.rs:43:5
7474
|
75-
41 | pub trait Boron {}
75+
43 | pub trait Boron {}
7676
| ---^^^^^^^^^^^^
7777
| |
7878
| help: consider restricting its visibility: `pub(crate)`
7979
|
8080
= help: or consider exporting it for use by other crates
8181

8282
warning: unreachable `pub` item
83-
--> $DIR/unreachable_pub-pub_crate.rs:42:5
83+
--> $DIR/unreachable_pub-pub_crate.rs:44:5
8484
|
85-
42 | pub const CARBON: usize = 1;
85+
44 | pub const CARBON: usize = 1;
8686
| ---^^^^^^^^^^^^^^^^^^^^^^^^^
8787
| |
8888
| help: consider restricting its visibility: `pub(crate)`
8989
|
9090
= help: or consider exporting it for use by other crates
9191

9292
warning: unreachable `pub` item
93-
--> $DIR/unreachable_pub-pub_crate.rs:43:5
93+
--> $DIR/unreachable_pub-pub_crate.rs:45:5
9494
|
95-
43 | pub static NITROGEN: usize = 2;
95+
45 | pub static NITROGEN: usize = 2;
9696
| ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9797
| |
9898
| help: consider restricting its visibility: `pub(crate)`
9999
|
100100
= help: or consider exporting it for use by other crates
101101

102102
warning: unreachable `pub` item
103-
--> $DIR/unreachable_pub-pub_crate.rs:44:5
103+
--> $DIR/unreachable_pub-pub_crate.rs:46:5
104104
|
105-
44 | pub type Oxygen = bool;
105+
46 | pub type Oxygen = bool;
106106
| ---^^^^^^^^^^^^^^^^^^^^
107107
| |
108108
| help: consider restricting its visibility: `pub(crate)`
109109
|
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:47
113+
--> $DIR/unreachable_pub-pub_crate.rs:49:47
114114
|
115-
47 | ($visibility: vis, $name: ident) => { $visibility struct $name {} }
115+
49 | ($visibility: vis, $name: ident) => { $visibility struct $name {} }
116116
| -----------^^^^^^^^^^^^^
117117
| |
118118
| 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);
121121
| ---------------------------------------------------- in this macro invocation
122122
|
123123
= help: or consider exporting it for use by other crates
124124

125125
warning: unreachable `pub` item
126-
--> $DIR/unreachable_pub-pub_crate.rs:52:9
126+
--> $DIR/unreachable_pub-pub_crate.rs:54:9
127127
|
128-
52 | pub fn catalyze() -> bool;
128+
54 | pub fn catalyze() -> bool;
129129
| ---^^^^^^^^^^^^^^^^^^^^^^^
130130
| |
131131
| help: consider restricting its visibility: `pub(crate)`

0 commit comments

Comments
 (0)