]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: testsuite: Replace dg-excess-errors with dg-error
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Thu, 20 Jul 2023 10:52:50 +0000 (12:52 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:56:00 +0000 (18:56 +0100)
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>
gcc/testsuite/rust/compile/proc_macro_attribute_crate_type.rs
gcc/testsuite/rust/compile/proc_macro_crate_type.rs
gcc/testsuite/rust/compile/proc_macro_derive_crate_type.rs

index 9ffd2b079b49c6a7602a3ec8dd0f5f84b968148c..c13128ef7d7486096b2b5271d3b0a998ebcb6367 100644 (file)
@@ -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() {}
index f27a94a6d33c404d45c57dbf2dc34e4bf1631085..880026dfe659146081195b2b37988125a21fa02f 100644 (file)
@@ -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() {}
index 20f69970dc4a1e9648a6f7d3274faec0eb4a4cd4..7d4234b387ea69aef804a3afd92e8fbc9a1d2782 100644 (file)
@@ -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() {}