Skip to content

Commit

Permalink
Avoid missing main error in tests
Browse files Browse the repository at this point in the history
rust-lang/rust#64290 changed that lint output causing test error, however there is no point in keeping this lint stderr
  • Loading branch information
mati865 committed Oct 15, 2019
1 parent 9de3d83 commit 7cd1d3b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
2 changes: 2 additions & 0 deletions phf_macros/tests/compile-fail-unicase/equivalent-keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ static MAP: phf::Map<UniCase<&'static str>, isize> = phf_map!( //~ ERROR duplica
UniCase("FOO") => 42, //~ NOTE one occurrence here
UniCase("foo") => 42, //~ NOTE one occurrence here
);

fn main() {}
6 changes: 0 additions & 6 deletions phf_macros/tests/compile-fail-unicase/equivalent-keys.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,3 @@ error: unsupported key expression
|
5 | UniCase("FOO") => 42, //~ NOTE one occurrence here
| ^^^^^^^^^^^^^^

error[E0601]: `main` function not found in crate `$CRATE`
|
= note: consider adding a `main` function to `$DIR/tests/compile-fail-unicase/equivalent-keys.rs`

For more information about this error, try `rustc --explain E0601`.
2 changes: 2 additions & 0 deletions phf_macros/tests/compile-fail/bad-syntax.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ static MAP: phf::Map<u32, u32> = phf_map! {
=> //~ ERROR expected identifier
()
};

fn main() {}
6 changes: 0 additions & 6 deletions phf_macros/tests/compile-fail/bad-syntax.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,3 @@ error: expected identifier
|
5 | => //~ ERROR expected identifier
| ^^

error[E0601]: `main` function not found in crate `$CRATE`
|
= note: consider adding a `main` function to `$DIR/tests/compile-fail/bad-syntax.rs`

For more information about this error, try `rustc --explain E0601`.

0 comments on commit 7cd1d3b

Please sign in to comment.