From: Pierre-Emmanuel Patry <[email protected]>
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]>
Tested on x86_64-pc-linux-gnu.
---
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 d9f1c143df7..d6817a29028 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)
}
}
--
2.55.0