Skip to content

Commit 7abbb9a

Browse files
committed
hide rustc line numbers in test
1 parent 5586c2a commit 7abbb9a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/ui-fulldeps/session-diagnostic/diagnostic-derive-doc-comment-field.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// check-fail
22
// Tests that a doc comment will not preclude a field from being considered a diagnostic argument
33
// normalize-stderr-test "the following other types implement trait `IntoDiagnosticArg`:(?:.*\n){0,9}\s+and \d+ others" -> "normalized in stderr"
4-
// normalize-stderr-test "diagnostic_builder\.rs:[0-9]+:[0-9]+" -> "diagnostic_builder.rs:LL:CC"
4+
// normalize-stderr-test "(COMPILER_DIR/.*\.rs):[0-9]+:[0-9]+" -> "$1:LL:CC"
55

66
// The proc_macro2 crate handles spans differently when on beta/stable release rather than nightly,
77
// changing the output of this test. Since Subdiagnostic is strictly internal to the compiler

tests/ui-fulldeps/session-diagnostic/diagnostic-derive-doc-comment-field.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ LL | arg: NotIntoDiagnosticArg,
2323
|
2424
= help: normalized in stderr
2525
note: required by a bound in `Diagnostic::set_arg`
26-
--> $COMPILER_DIR/rustc_errors/src/diagnostic.rs:968:5
26+
--> $COMPILER_DIR/rustc_errors/src/diagnostic.rs:LL:CC
2727

2828
error: aborting due to 2 previous errors
2929

0 commit comments

Comments
 (0)