Skip to content

Commit 2f518af

Browse files
committed
Update tests
1 parent db0c30b commit 2f518af

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

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

+13-13
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,6 @@ LL | #[forbid(nonstandard_style)]
3737
| ^^^^^^^^^^^^^^^^^
3838
= note: #[forbid(non_snake_case)] implied by #[forbid(nonstandard_style)]
3939

40-
error: static variable `bad` should have an upper case name
41-
--> $DIR/lint-group-nonstandard-style.rs:14:16
42-
|
43-
LL | static bad: isize = 1; //~ ERROR should have an upper
44-
| ^^^ help: convert the identifier to upper case: `BAD`
45-
|
46-
note: lint level defined here
47-
--> $DIR/lint-group-nonstandard-style.rs:10:14
48-
|
49-
LL | #[forbid(nonstandard_style)]
50-
| ^^^^^^^^^^^^^^^^^
51-
= note: #[forbid(non_upper_case_globals)] implied by #[forbid(nonstandard_style)]
52-
5340
warning: function `CamelCase` should have a snake case name
5441
--> $DIR/lint-group-nonstandard-style.rs:20:12
5542
|
@@ -63,5 +50,18 @@ LL | #![warn(nonstandard_style)]
6350
| ^^^^^^^^^^^^^^^^^
6451
= note: #[warn(non_snake_case)] implied by #[warn(nonstandard_style)]
6552

53+
error: static variable `bad` should have an upper case name
54+
--> $DIR/lint-group-nonstandard-style.rs:14:16
55+
|
56+
LL | static bad: isize = 1; //~ ERROR should have an upper
57+
| ^^^ help: convert the identifier to upper case: `BAD`
58+
|
59+
note: lint level defined here
60+
--> $DIR/lint-group-nonstandard-style.rs:10:14
61+
|
62+
LL | #[forbid(nonstandard_style)]
63+
| ^^^^^^^^^^^^^^^^^
64+
= note: #[forbid(non_upper_case_globals)] implied by #[forbid(nonstandard_style)]
65+
6666
error: aborting due to 3 previous errors
6767

src/test/ui/lint/lint-impl-fn.stderr

+8-8
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,25 @@ LL | #[deny(while_true)]
1111
| ^^^^^^^^^^
1212

1313
error: denote infinite loops with `loop { ... }`
14-
--> $DIR/lint-impl-fn.rs:18:25
14+
--> $DIR/lint-impl-fn.rs:27:5
1515
|
16-
LL | fn foo(&self) { while true {} } //~ ERROR: infinite loops
17-
| ^^^^^^^^^^ help: use `loop`
16+
LL | while true {} //~ ERROR: infinite loops
17+
| ^^^^^^^^^^ help: use `loop`
1818
|
1919
note: lint level defined here
20-
--> $DIR/lint-impl-fn.rs:13:8
20+
--> $DIR/lint-impl-fn.rs:25:8
2121
|
2222
LL | #[deny(while_true)]
2323
| ^^^^^^^^^^
2424

2525
error: denote infinite loops with `loop { ... }`
26-
--> $DIR/lint-impl-fn.rs:27:5
26+
--> $DIR/lint-impl-fn.rs:18:25
2727
|
28-
LL | while true {} //~ ERROR: infinite loops
29-
| ^^^^^^^^^^ help: use `loop`
28+
LL | fn foo(&self) { while true {} } //~ ERROR: infinite loops
29+
| ^^^^^^^^^^ help: use `loop`
3030
|
3131
note: lint level defined here
32-
--> $DIR/lint-impl-fn.rs:25:8
32+
--> $DIR/lint-impl-fn.rs:13:8
3333
|
3434
LL | #[deny(while_true)]
3535
| ^^^^^^^^^^

0 commit comments

Comments
 (0)