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]>
---
This change was merged into the gccrs repository and is posted here for
upstream visibility and potential drive-by review, as requested by GCC
release managers.
Each commit email contains a link to its details on github from where you can
find the Pull-Request and associated discussions.
Commit on github:
https://github.com/Rust-GCC/gccrs/commit/6e8954d8528aec5614bc135d09ebfa6b7279f3de
The commit has NOT been mentioned in any issue.
The commit has been mentioned in the following pull-request(s):
- https://github.com/Rust-GCC/gccrs/pull/5030
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 d9f1c143d..d6817a290 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.56.0