Skip to content

Commit 8d727b2

Browse files
committed
update tests line numbers
1 parent 6886098 commit 8d727b2

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

src/test/ui/lint/lint-group-nonstandard-style.stderr

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,63 @@
11
warning: type `snake_case` should have a camel case name such as `SnakeCase`
2-
--> $DIR/lint-group-nonstandard-style.rs:26:9
2+
--> $DIR/lint-group-nonstandard-style.rs:22:9
33
|
44
LL | struct snake_case; //~ WARN should have a camel
55
| ^^^^^^^^^^^^^^^^^^
66
|
77
note: lint level defined here
8-
--> $DIR/lint-group-nonstandard-style.rs:22:17
8+
--> $DIR/lint-group-nonstandard-style.rs:18:17
99
|
1010
LL | #![warn(nonstandard_style)]
1111
| ^^^^^^^^^^^^^^^^^
1212
= note: #[warn(non_camel_case_types)] implied by #[warn(nonstandard_style)]
1313

1414
error: function `CamelCase` should have a snake case name such as `camel_case`
15-
--> $DIR/lint-group-nonstandard-style.rs:8:1
15+
--> $DIR/lint-group-nonstandard-style.rs:4:1
1616
|
1717
LL | fn CamelCase() {} //~ ERROR should have a snake
1818
| ^^^^^^^^^^^^^^^^^
1919
|
2020
note: lint level defined here
21-
--> $DIR/lint-group-nonstandard-style.rs:5:9
21+
--> $DIR/lint-group-nonstandard-style.rs:1:9
2222
|
2323
LL | #![deny(nonstandard_style)]
2424
| ^^^^^^^^^^^^^^^^^
2525
= note: #[deny(non_snake_case)] implied by #[deny(nonstandard_style)]
2626

2727
error: function `CamelCase` should have a snake case name such as `camel_case`
28-
--> $DIR/lint-group-nonstandard-style.rs:16:9
28+
--> $DIR/lint-group-nonstandard-style.rs:12:9
2929
|
3030
LL | fn CamelCase() {} //~ ERROR should have a snake
3131
| ^^^^^^^^^^^^^^^^^
3232
|
3333
note: lint level defined here
34-
--> $DIR/lint-group-nonstandard-style.rs:14:14
34+
--> $DIR/lint-group-nonstandard-style.rs:10:14
3535
|
3636
LL | #[forbid(nonstandard_style)]
3737
| ^^^^^^^^^^^^^^^^^
3838
= note: #[forbid(non_snake_case)] implied by #[forbid(nonstandard_style)]
3939

4040
error: static variable `bad` should have an upper case name such as `BAD`
41-
--> $DIR/lint-group-nonstandard-style.rs:18:9
41+
--> $DIR/lint-group-nonstandard-style.rs:14:9
4242
|
4343
LL | static bad: isize = 1; //~ ERROR should have an upper
4444
| ^^^^^^^^^^^^^^^^^^^^^^
4545
|
4646
note: lint level defined here
47-
--> $DIR/lint-group-nonstandard-style.rs:14:14
47+
--> $DIR/lint-group-nonstandard-style.rs:10:14
4848
|
4949
LL | #[forbid(nonstandard_style)]
5050
| ^^^^^^^^^^^^^^^^^
5151
= note: #[forbid(non_upper_case_globals)] implied by #[forbid(nonstandard_style)]
5252

5353
warning: function `CamelCase` should have a snake case name such as `camel_case`
54-
--> $DIR/lint-group-nonstandard-style.rs:24:9
54+
--> $DIR/lint-group-nonstandard-style.rs:20:9
5555
|
5656
LL | fn CamelCase() {} //~ WARN should have a snake
5757
| ^^^^^^^^^^^^^^^^^
5858
|
5959
note: lint level defined here
60-
--> $DIR/lint-group-nonstandard-style.rs:22:17
60+
--> $DIR/lint-group-nonstandard-style.rs:18:17
6161
|
6262
LL | #![warn(nonstandard_style)]
6363
| ^^^^^^^^^^^^^^^^^

src/test/ui/lint/not_found.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
warning: unknown lint: `FOO_BAR`
2-
--> $DIR/not_found.rs:10:9
2+
--> $DIR/not_found.rs:6:9
33
|
44
LL | #[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:12:8
10+
--> $DIR/not_found.rs:8:8
1111
|
1212
LL | #[warn(DEAD_CODE)]
1313
| ^^^^^^^^^ help: did you mean: `dead_code`
1414

1515
warning: unknown lint: `Warnings`
16-
--> $DIR/not_found.rs:14:8
16+
--> $DIR/not_found.rs:10:8
1717
|
1818
LL | #[deny(Warnings)]
1919
| ^^^^^^^^ help: did you mean: `warnings`

0 commit comments

Comments
 (0)