method-probing machinery can false-negative because it doesn't know about associated types #46460
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
S-needs-repro
Status: This issue has no reproduction and needs a reproduction to make progress.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
As part of the endeavor that also prompted #46459, it was noticed that we never generated a suggestion for
.to_owned()
even where it would be appropriate. Some strategic logging inmatches_return_type
revealed that the result being returned by.can_sub
was—But in this case,
ToOwned::Owned
should have beenString
.The text was updated successfully, but these errors were encountered: