]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Change expected error output to match nr2
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Thu, 24 Apr 2025 12:28:59 +0000 (14:28 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Mon, 28 Apr 2025 14:18:55 +0000 (16:18 +0200)
Name resolution 2.0 message describes the context around the unresolved
items and should therefore be kept.

gcc/testsuite/ChangeLog:

* rust/compile/nr2/exclude: Remove test from exclusion list.
* rust/compile/use_1.rs: Change expected output and remove test from
nr1.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/testsuite/rust/compile/nr2/exclude
gcc/testsuite/rust/compile/use_1.rs

index 2c116be13491f26a6da94f8fea4d3d28b7b49e74..23f3b1bf62ca4b743c772315fa1962f7e8d242ed 100644 (file)
@@ -7,7 +7,6 @@ privacy8.rs
 pub_restricted_1.rs
 pub_restricted_2.rs
 pub_restricted_3.rs
-use_1.rs
 issue-2905-2.rs
 derive_clone_enum3.rs
 derive-default1.rs
index 94b96321a6353476aac869768e4ca45e875430bb..e8e2037aac3f50d78369c66d3d90410cc0418c76 100644 (file)
@@ -1,7 +1,8 @@
+// { dg-additional-options "-frust-name-resolution-2.0" }
 mod frob {}
 
-use foo::bar::baz; // { dg-error "cannot find simple path segment .foo." }
-use frob::ulator; // { dg-error "cannot find simple path segment .ulator." }
+use foo::bar::baz; // { dg-error "unresolved import .foo::bar::baz." }
+use frob::ulator; // { dg-error "unresolved import .frob::ulator." }
 
 mod sain {
     mod doux {}
@@ -9,8 +10,8 @@ mod sain {
     mod dron {}
 }
 
-use not_sain::*; // { dg-error "cannot find simple path segment .not_sain." }
+use not_sain::*; // { dg-error "unresolved import .not_sain." }
 
 use sain::*;
 use sain::{doux, dron};
-use sain::{doux, dron, graal}; // { dg-error "cannot find simple path segment .graal." }
+use sain::{doux, dron, graal}; // { dg-error "unresolved import .sain::graal." }