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:
Vadim Petrochenkov 2025-04-07 19:13:16 +03:00
parent 5c160f511e
commit fd854a772e
12 changed files with 27 additions and 18 deletions

View file

@ -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,