compiletest: Avoid ignoring empty diagnostics in one more place
This catches some silly notes emitted by rustc, which should ideally be fixed
This commit is contained in:
parent
5c160f511e
commit
fd854a772e
12 changed files with 27 additions and 18 deletions
|
|
@ -810,8 +810,7 @@ impl<'test> TestCx<'test> {
|
|||
expect_help: bool,
|
||||
expect_note: bool,
|
||||
) -> bool {
|
||||
!actual_error.msg.is_empty()
|
||||
&& actual_error.require_annotation
|
||||
actual_error.require_annotation
|
||||
&& match actual_error.kind {
|
||||
Some(ErrorKind::Help) => expect_help,
|
||||
Some(ErrorKind::Note) => expect_note,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue