-
Couldn't load subscription status.
- Fork 13.9k
Suggest removing a semicolon and boxing the expressions for if-else #99974
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
Suggest removing a semicolon and boxing the expressions for if-else #99974
Conversation
|
r? @estebank (rust-highfive has picked a reviewer for you, use r? to override) |
|
r? @compiler-errors @bors r+ rolluo |
|
@bors rollup |
Rollup of 5 pull requests Successful merges: - rust-lang#99186 (Use LocalDefId for closures more) - rust-lang#99741 (Use `impl`'s generics when suggesting fix on bad `impl Copy`) - rust-lang#99844 (Introduce an ArchiveBuilderBuilder) - rust-lang#99921 (triagebot.yml: CC Enselic when rustdoc-json-types changes) - rust-lang#99974 (Suggest removing a semicolon and boxing the expressions for if-else) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
| @@ -0,0 +1,70 @@ | |||
| // edition:2018 | |||
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.
This file can be // run-rustfix, right?
InferCtxt::suggest_remove_semi_or_return_bindingwas not working well for if-else, so I fixed it and added a ui test.