https://gcc.gnu.org/g:4f3cab560f0566d42b11ad0a433613003306e0e2
commit r15-2588-g4f3cab560f0566d42b11ad0a433613003306e0e2 Author: Arthur Cohen <arthur.co...@embecosm.com> Date: Fri Mar 29 12:19:10 2024 +0100 gccrs: raw-strings: Remove dg-excess-error directive The error is actually expected and uses the correct location. gcc/testsuite/ChangeLog: * rust/compile/raw-byte-string-loc.rs: Use dg-error instead of dg-excess-error. * rust/compile/raw-string-loc.rs: Likewise. Diff: --- gcc/testsuite/rust/compile/raw-byte-string-loc.rs | 2 +- gcc/testsuite/rust/compile/raw-string-loc.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/rust/compile/raw-byte-string-loc.rs b/gcc/testsuite/rust/compile/raw-byte-string-loc.rs index f37d3f9694d3..b71b6e5adedc 100644 --- a/gcc/testsuite/rust/compile/raw-byte-string-loc.rs +++ b/gcc/testsuite/rust/compile/raw-byte-string-loc.rs @@ -3,4 +3,4 @@ const X: &'static u8 = br#"12 BREAK // { dg-error "unrecognised token" "" { target *-*-* } .-1 } -// { dg-excess-errors "error 'failed to parse item' does not have location" } +// { dg-error "failed to parse item" "" { target *-*-* } .-2 } diff --git a/gcc/testsuite/rust/compile/raw-string-loc.rs b/gcc/testsuite/rust/compile/raw-string-loc.rs index 70977510ba38..26331eafa44a 100644 --- a/gcc/testsuite/rust/compile/raw-string-loc.rs +++ b/gcc/testsuite/rust/compile/raw-string-loc.rs @@ -3,4 +3,4 @@ const X: &'static str = r#"12 BREAK // { dg-error "unrecognised token" "" { target *-*-* } .-1 } -// { dg-excess-errors "error 'failed to parse item' does not have location" } +// { dg-error "failed to parse item" "" { target *-*-* } .-2 }