aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-07-20 12:52:50 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:56:00 +0100
commitde83e69bb6ea300206eaf5a0cd2d365f2444f4b5 (patch)
tree98c0c9daf190525d4cb9a0a19f3a768a080c815e
parent1a02c452a6496c4f75296f0ee5669f0f9befaee6 (diff)
downloadgcc-de83e69bb6ea300206eaf5a0cd2d365f2444f4b5.zip
gcc-de83e69bb6ea300206eaf5a0cd2d365f2444f4b5.tar.gz
gcc-de83e69bb6ea300206eaf5a0cd2d365f2444f4b5.tar.bz2
gccrs: testsuite: Replace dg-excess-errors with dg-error
Some test were using dg-excess-errors instead of dg-error, this is now fixed. gcc/testsuite/ChangeLog: * rust/compile/proc_macro_attribute_crate_type.rs: Replace dg-excess-errors with dg-error and fix the line so the test can pass. * rust/compile/proc_macro_crate_type.rs: Likewise. * rust/compile/proc_macro_derive_crate_type.rs: Likewise. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
-rw-r--r--gcc/testsuite/rust/compile/proc_macro_attribute_crate_type.rs2
-rw-r--r--gcc/testsuite/rust/compile/proc_macro_crate_type.rs2
-rw-r--r--gcc/testsuite/rust/compile/proc_macro_derive_crate_type.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/gcc/testsuite/rust/compile/proc_macro_attribute_crate_type.rs b/gcc/testsuite/rust/compile/proc_macro_attribute_crate_type.rs
index 9ffd2b0..c13128e 100644
--- a/gcc/testsuite/rust/compile/proc_macro_attribute_crate_type.rs
+++ b/gcc/testsuite/rust/compile/proc_macro_attribute_crate_type.rs
@@ -1,4 +1,4 @@
// { dg-additional-options "-frust-crate-type=lib" }
-#[proc_macro_attribute] // { dg-excess-errors "the '#\[proc_macro_attribute\]' attribute is only usable with crates of the 'proc-macro' crate type" }
+#[proc_macro_attribute] // { dg-error "the .#.proc_macro_attribute.. attribute is only usable with crates of the .proc-macro. crate type" }
pub fn my_invalid_macro() {}
diff --git a/gcc/testsuite/rust/compile/proc_macro_crate_type.rs b/gcc/testsuite/rust/compile/proc_macro_crate_type.rs
index f27a94a..880026d 100644
--- a/gcc/testsuite/rust/compile/proc_macro_crate_type.rs
+++ b/gcc/testsuite/rust/compile/proc_macro_crate_type.rs
@@ -1,4 +1,4 @@
// { dg-additional-options "-frust-crate-type=lib" }
-#[proc_macro] // { dg-excess-errors "the '#\[proc_macro\]' attribute is only usable with crates of the 'proc-macro' crate type" }
+#[proc_macro] // { dg-error "the .#.proc_macro.. attribute is only usable with crates of the .proc-macro. crate type" }
pub fn my_invalid_macro() {}
diff --git a/gcc/testsuite/rust/compile/proc_macro_derive_crate_type.rs b/gcc/testsuite/rust/compile/proc_macro_derive_crate_type.rs
index 20f6997..7d4234b 100644
--- a/gcc/testsuite/rust/compile/proc_macro_derive_crate_type.rs
+++ b/gcc/testsuite/rust/compile/proc_macro_derive_crate_type.rs
@@ -2,5 +2,5 @@
trait Dungeness {}
-#[proc_macro_derive(Dungeness)] // { dg-excess-errors "the '#\[proc_macro_derive\]' attribute is only usable with crates of the 'proc-macro' crate type" }
+#[proc_macro_derive(Dungeness)] // { dg-error "the .#.proc_macro_derive.. attribute is only usable with crates of the .proc-macro. crate type" }
pub fn my_invalid_macro() {}