Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upHeterogeneous comparisons for Option #917
Comments
huonw
added
the
A-libs
label
Feb 28, 2015
This comment has been minimized.
This comment has been minimized.
|
For some reason after this change |
This comment has been minimized.
This comment has been minimized.
|
Default type parameters do not currently drive inference, iirc. |
This comment has been minimized.
This comment has been minimized.
|
There is an issue open for generalizing comparison across all types in cc rust-lang/rust#20927 as well. |
petrochenkov
referenced this issue
Jul 26, 2015
Merged
RFC 213: Implement Default Type Parameter Fallback #26870
This comment has been minimized.
This comment has been minimized.
bluss
commented
Feb 9, 2016
|
Potentially leads to widespread type inference regressions, when |
dtolnay
referenced this issue
Nov 19, 2017
Closed
PartialEq/Eq and PartialOrd/Ord impls generated by `#[derive(...)]` are not generic for RHS #20927
petrochenkov
referenced this issue
Dec 12, 2017
Closed
Change impls of `PartialEq` and friends in libstd to be more generic #2245
This comment has been minimized.
This comment has been minimized.
|
Closing in favor of more general rust-lang/rust#20063. |
petrochenkov commentedFeb 27, 2015
It would be useful to be able to compare
Option<T>withOption<U>ifTandUare comparable themselves. I.e.Heterogeneous comparisons for
Optionare clear and unambiguous and there are precedents - some other basic library types, likeVecor[T]support heterogeneous comparisons too.cc @aturon
cc rust-lang/rust#22838