Open
Metadata
Metadata
Assignees
Labels
Area: Messages for errors, warnings, and lintsArea: Suggestions generated by the compiler applied by `cargo fix`Diagnostics: An error or lint that needs small tweaks.Diagnostics: An error or lint that doesn't give enough information about the problem at hand.Low priorityRelevant to the compiler team, which will review and decide on the PR/issue.
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
willcrichton commentedon Apr 26, 2022
I will take a stab at this soon. I am fairly certain I know how to do it -- there's an
Expectation
type that describes the expected return type, and if that expectation exists, we can use it to boundOutput=<Expectation>
.I tried implementing that today. This is the core change: willcrichton@e652939#diff-ea6f9d55e90333a1f5fc5e202d46862a6a031410831f2df42317ac024f821162R519-R539
This change seems to introduce some noise in other tests involving binops that will require manual fixing. But maybe next weekend I will try to finish this.
@rustbot claim
Auto merge of rust-lang#96482 - willcrichton:fix-trait-suggestion-for…