"Go To References" for PartialOrd
functions should find comparison operators
#18540
Labels
C-feature
Category: feature request
If I have code like this:
Running "go to definition" on the
<=
will go to the definition of thele
method in theimpl PartialOrd for Foo
(including to the default implementation in thePartialOrd
trait if not explicitly overridden in theimpl
block), but running "go to references" can't go back the other way.It'd be great if I could "go to references" on the
le
function to find all places where<=
is used to compare 2Foo
s. It'd be even greater if, for a type that only implements thepartial_cmp
function and leaves the default implementations alone, "go to references" could find all the<
/<=
/>
/>=
comparison operators (not sure if this second part is feasible, since it does technically go through a different method).The text was updated successfully, but these errors were encountered: