Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoxc committed Jan 19, 2019
1 parent db0c30b commit 2f518af
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
26 changes: 13 additions & 13 deletions src/test/ui/lint/lint-group-nonstandard-style.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,6 @@ LL | #[forbid(nonstandard_style)]
| ^^^^^^^^^^^^^^^^^
= note: #[forbid(non_snake_case)] implied by #[forbid(nonstandard_style)]

error: static variable `bad` should have an upper case name
--> $DIR/lint-group-nonstandard-style.rs:14:16
|
LL | static bad: isize = 1; //~ ERROR should have an upper
| ^^^ help: convert the identifier to upper case: `BAD`
|
note: lint level defined here
--> $DIR/lint-group-nonstandard-style.rs:10:14
|
LL | #[forbid(nonstandard_style)]
| ^^^^^^^^^^^^^^^^^
= note: #[forbid(non_upper_case_globals)] implied by #[forbid(nonstandard_style)]

warning: function `CamelCase` should have a snake case name
--> $DIR/lint-group-nonstandard-style.rs:20:12
|
Expand All @@ -63,5 +50,18 @@ LL | #![warn(nonstandard_style)]
| ^^^^^^^^^^^^^^^^^
= note: #[warn(non_snake_case)] implied by #[warn(nonstandard_style)]

error: static variable `bad` should have an upper case name
--> $DIR/lint-group-nonstandard-style.rs:14:16
|
LL | static bad: isize = 1; //~ ERROR should have an upper
| ^^^ help: convert the identifier to upper case: `BAD`
|
note: lint level defined here
--> $DIR/lint-group-nonstandard-style.rs:10:14
|
LL | #[forbid(nonstandard_style)]
| ^^^^^^^^^^^^^^^^^
= note: #[forbid(non_upper_case_globals)] implied by #[forbid(nonstandard_style)]

error: aborting due to 3 previous errors

16 changes: 8 additions & 8 deletions src/test/ui/lint/lint-impl-fn.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,25 @@ LL | #[deny(while_true)]
| ^^^^^^^^^^

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

error: denote infinite loops with `loop { ... }`
--> $DIR/lint-impl-fn.rs:27:5
--> $DIR/lint-impl-fn.rs:18:25
|
LL | while true {} //~ ERROR: infinite loops
| ^^^^^^^^^^ help: use `loop`
LL | fn foo(&self) { while true {} } //~ ERROR: infinite loops
| ^^^^^^^^^^ help: use `loop`
|
note: lint level defined here
--> $DIR/lint-impl-fn.rs:25:8
--> $DIR/lint-impl-fn.rs:13:8
|
LL | #[deny(while_true)]
| ^^^^^^^^^^
Expand Down

0 comments on commit 2f518af

Please sign in to comment.