[gcc r14-7839] gccrs: testsuite: Replace dg-excess-errors with dg-error

Arthur Cohen cohenarthur@gcc.gnu.org
Tue Jan 16 18:02:59 GMT 2024


https://gcc.gnu.org/g:de83e69bb6ea300206eaf5a0cd2d365f2444f4b5

commit r14-7839-gde83e69bb6ea300206eaf5a0cd2d365f2444f4b5
Author: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Date:   Thu Jul 20 12:52:50 2023 +0200

    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>

Diff:
---
 gcc/testsuite/rust/compile/proc_macro_attribute_crate_type.rs | 2 +-
 gcc/testsuite/rust/compile/proc_macro_crate_type.rs           | 2 +-
 gcc/testsuite/rust/compile/proc_macro_derive_crate_type.rs    | 2 +-
 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 9ffd2b079b4..c13128ef7d7 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 f27a94a6d33..880026dfe65 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 20f69970dc4..7d4234b387e 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() {}


More information about the Gcc-cvs mailing list