Skip to content

Commit 9ff6c77

Browse files
committed
tests: avoid inadvertent diffs in diag derive test
In the diagnostic derive test, a "the following other types implement trait" diagnostic is output which lists rustc types that implement `IntoDiagnosticArg`. As the output of this test can change due to new internal compiler types like implementing `IntoDiagnosticArg`, it can start failing without indicating a problem to be fixed - so normalize that output away. Signed-off-by: David Wood <[email protected]>
1 parent fedd4c6 commit 9ff6c77

File tree

2 files changed

+56
-60
lines changed

2 files changed

+56
-60
lines changed

src/test/ui-fulldeps/session-diagnostic/diagnostic-derive.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// check-fail
22
// Tests error conditions for specifying diagnostics using #[derive(SessionDiagnostic)]
33

4+
// normalize-stderr-test "the following other types implement trait `IntoDiagnosticArg`:(?:.*\n){0,9}\s+and \d+ others" -> "normalized in stderr"
5+
46
// The proc_macro2 crate handles spans differently when on beta/stable release rather than nightly,
57
// changing the output of this test. Since SessionDiagnostic is strictly internal to the compiler
68
// the test is just ignored on stable and beta:

0 commit comments

Comments
 (0)