]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: raw-strings: Remove dg-excess-error directive
authorArthur Cohen <arthur.cohen@embecosm.com>
Fri, 29 Mar 2024 11:19:10 +0000 (12:19 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 1 Aug 2024 14:52:29 +0000 (16:52 +0200)
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.

gcc/testsuite/rust/compile/raw-byte-string-loc.rs
gcc/testsuite/rust/compile/raw-string-loc.rs

index f37d3f9694d345cda9d34e577b17f80036442fd3..b71b6e5adedce29289c907bd984c95d7439d6031 100644 (file)
@@ -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 }
index 70977510ba389ce32b4176216a5acfcd9b66488d..26331eafa44a7451e4400ffd23a8b6292fad39e0 100644 (file)
@@ -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 }