-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[single_match
, single_match_else
] fix suggestion when match irrefutable
#13324
Conversation
de07605
to
77c92fa
Compare
77c92fa
to
04d70d0
Compare
tests/ui/single_match.fixed
Outdated
{ println!() } | ||
|
||
{ println!() } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we suggest this into an expr instead of a block?
For L313, I guess it might change the behaviour if we move out of the block, but this part is fine.
Thank you! @bors r+ |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
1 similar comment
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
👀 Test was successful, but fast-forwarding failed: 422 Changes must be made through a pull request. |
fixes #13012
changelog:[
single_match
,single_match_else
]: fix suggestion whenmatch
irrefutable