https://gcc.gnu.org/g:5fb6c80eac193ee97a369d9f0873d85c80bb93a5
commit r17-5931-g5fb6c80eac193ee97a369d9f0873d85c80bb93a5 Author: Pierre-Emmanuel Patry <[email protected]> Date: Fri Oct 30 16:50:35 2026 +0100 gccrs: Fix test canonical path Global paths (starting with :: for extern prelude) cannot contain the crate keyword. The test is trying to access the Ordering struct within the current crate, the extern prelude prefix is not required. gcc/testsuite/ChangeLog: * rust/execute/torture/partial-ord-5.rs: Remove double semicolon prefix. Signed-off-by: Pierre-Emmanuel Patry <[email protected]> Diff: --- gcc/testsuite/rust/execute/torture/partial-ord-5.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/rust/execute/torture/partial-ord-5.rs b/gcc/testsuite/rust/execute/torture/partial-ord-5.rs index d9f1c143df73..d6817a29028c 100644 --- a/gcc/testsuite/rust/execute/torture/partial-ord-5.rs +++ b/gcc/testsuite/rust/execute/torture/partial-ord-5.rs @@ -426,7 +426,7 @@ struct Foo { } impl PartialOrd for Foo { - fn partial_cmp(&self, other: &'_ Foo) -> Option<::crate::cmp::Ordering> { + fn partial_cmp(&self, other: &'_ Foo) -> Option<crate::cmp::Ordering> { self.a.partial_cmp(&other.a) } }
