Skip to content

Commit

Permalink
Format ui test files using rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Aug 29, 2020
1 parent 020c923 commit 5e668bc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
4 changes: 1 addition & 3 deletions tests/ui/empty_enum.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#[cxx::bridge]
mod ffi {
enum A {

}
enum A {}
}

fn main() {}
6 changes: 2 additions & 4 deletions tests/ui/empty_enum.stderr
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
error: enums without any variants are not supported
--> $DIR/empty_enum.rs:3:5
|
3 | / enum A {
4 | |
5 | | }
| |_____^
3 | enum A {}
| ^^^^^^^^^
3 changes: 1 addition & 2 deletions tests/ui/multiple_parse_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
mod ffi {
struct Monad<T>;

extern "Haskell" {
}
extern "Haskell" {}
}

fn main() {}
2 changes: 1 addition & 1 deletion tests/ui/multiple_parse_error.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ error: struct with generic parameters is not supported yet
error: unrecognized ABI
--> $DIR/multiple_parse_error.rs:5:5
|
5 | extern "Haskell" {
5 | extern "Haskell" {}
| ^^^^^^^^^^^^^^^^

0 comments on commit 5e668bc

Please sign in to comment.