-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
syntax: make match arms store the expr directly.
Previously `ast::Arm` was always storing a single `ast::Expr` wrapped in an `ast::Block` (for historical reasons, AIUI), so we might as just store that expr directly. Closes #3085.
- Loading branch information
Showing
15 changed files
with
30 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c3b9047
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.
saw approval from alexcrichton
at huonw@c3b9047
c3b9047
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.
merging huonw/rust/de-block-arms = c3b9047 into auto
c3b9047
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.
huonw/rust/de-block-arms = c3b9047 merged ok, testing candidate = dc18659
c3b9047
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.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/4581
success: http://buildbot.rust-lang.org/builders/auto-mac-32-nopt-c/builds/2423
success: http://buildbot.rust-lang.org/builders/auto-mac-32-nopt-t/builds/2423
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/4578
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/3678
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/3684
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/4594
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/3682
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/3688
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/4596
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/3682
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/3687
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android/builds/3755
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/1573
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/4590
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/3691
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/3698
success: http://buildbot.rust-lang.org/builders/auto-bsd-64-opt/builds/4355
c3b9047
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.
fast-forwarding master to auto = dc18659