Skip to content

Improve suggestions for compatible variants on type mismatch.#90575

Merged
bors merged 7 commits intorust-lang:masterfrom
m-ou-se:compatible-variant-improvements
Nov 20, 2021
Merged

Improve suggestions for compatible variants on type mismatch.#90575
bors merged 7 commits intorust-lang:masterfrom
m-ou-se:compatible-variant-improvements

Conversation

@m-ou-se
Copy link
Member

@m-ou-se m-ou-se commented Nov 4, 2021

Fixes #90553.

Before:
image

After:
image

r? @estebank

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-diagnostics Area: Messages for errors, warnings, and lints A-suggestion-diagnostics Area: Suggestions generated by the compiler applied by `cargo fix` S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Special case suggestion for missing tail expression when dealing with Ok(()) and Some(())

5 participants