Skip to content

Commit 7cd1d3b

Browse files
committed
Avoid missing main error in tests
rust-lang/rust#64290 changed that lint output causing test error, however there is no point in keeping this lint stderr
1 parent 9de3d83 commit 7cd1d3b

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

phf_macros/tests/compile-fail-unicase/equivalent-keys.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ static MAP: phf::Map<UniCase<&'static str>, isize> = phf_map!( //~ ERROR duplica
55
UniCase("FOO") => 42, //~ NOTE one occurrence here
66
UniCase("foo") => 42, //~ NOTE one occurrence here
77
);
8+
9+
fn main() {}

phf_macros/tests/compile-fail-unicase/equivalent-keys.stderr

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,3 @@ error: unsupported key expression
33
|
44
5 | UniCase("FOO") => 42, //~ NOTE one occurrence here
55
| ^^^^^^^^^^^^^^
6-
7-
error[E0601]: `main` function not found in crate `$CRATE`
8-
|
9-
= note: consider adding a `main` function to `$DIR/tests/compile-fail-unicase/equivalent-keys.rs`
10-
11-
For more information about this error, try `rustc --explain E0601`.

phf_macros/tests/compile-fail/bad-syntax.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ static MAP: phf::Map<u32, u32> = phf_map! {
55
=> //~ ERROR expected identifier
66
()
77
};
8+
9+
fn main() {}

phf_macros/tests/compile-fail/bad-syntax.stderr

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,3 @@ error: expected identifier
33
|
44
5 | => //~ ERROR expected identifier
55
| ^^
6-
7-
error[E0601]: `main` function not found in crate `$CRATE`
8-
|
9-
= note: consider adding a `main` function to `$DIR/tests/compile-fail/bad-syntax.rs`
10-
11-
For more information about this error, try `rustc --explain E0601`.

0 commit comments

Comments
 (0)