You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yeah so SocketAddr behaves differently in a HashMap vs BTreeMap. Not only is this surprising but it also conflicts with the documentation for Ord & PartialOrd.
The text was updated successfully, but these errors were encountered:
This is caused by Eq being derived but Ord being manually implemented for SocketAddrV6, with the Ord impl only taking into account address and port, ignoring flowinfo and scope_id.
WaffleLapkin
added
C-bug
Category: This is a bug.
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
and removed
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
labels
Oct 14, 2023
I tried this code:
https://play.rust-lang.org/?version=stable&mode=release&edition=2021&gist=5c3bc19334a7cf61d10517e874f8cf0b
I expected to see this happen:
Equals, true
Instead, this happened:
Equals, false
Meta
yeah so SocketAddr behaves differently in a HashMap vs BTreeMap. Not only is this surprising but it also conflicts with the documentation for Ord & PartialOrd.
The text was updated successfully, but these errors were encountered: