-
Notifications
You must be signed in to change notification settings - Fork 13k
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
refactor if so that the "then type" is an expression #40391
Conversation
src/librustc/hir/mod.rs
Outdated
@@ -930,7 +930,7 @@ pub enum Expr_ { | |||
/// An `if` block, with an optional else block | |||
/// | |||
/// `if expr { block } else { expr }` |
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 comment should be updated.
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.
r=me with the comment and the title ("then type") fixed
576fdff
to
002950b
Compare
@bors r+ |
📌 Commit 002950b has been approved by |
Travis failed:
|
@bors r- |
☔ The latest upstream changes (presumably #40693) made this pull request unmergeable. Please resolve the merge conflicts. |
closing this PR; I'll roll the change into #40224 |
This is a useful refactoring that I want for other branches.
r? @eddyb