diff --git a/gcc/testsuite/rust/compile/cfg1.rs b/gcc/testsuite/rust/compile/cfg1.rs index 6984f04d1b9..9eadad765da 100644 --- a/gcc/testsuite/rust/compile/cfg1.rs +++ b/gcc/testsuite/rust/compile/cfg1.rs @@ -1,4 +1,4 @@ -// { dg-additional-options "-w" } +// { dg-additional-options "-w -frust-name-resolution-2.0" } extern "C" { fn printf(s: *const i8, ...); } @@ -27,5 +27,5 @@ fn test() { fn main() { test(); - // { dg-error "Cannot find path .test. in this scope" "" { target *-*-* } .-1 } + // { dg-error "could not resolve path expression: .test." "" { target *-*-* } .-1 } } diff --git a/gcc/testsuite/rust/compile/nr2/exclude b/gcc/testsuite/rust/compile/nr2/exclude index f91cf3132c7..1f7c5150e30 100644 --- a/gcc/testsuite/rust/compile/nr2/exclude +++ b/gcc/testsuite/rust/compile/nr2/exclude @@ -19,7 +19,6 @@ macros/builtin/recurse2.rs macros/builtin/include3.rs macros/builtin/include4.rs canonical_paths1.rs -cfg1.rs cfg3.rs cfg4.rs cfg5.rs