-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rustc: update the unnecessary parens lint for struct literals.
Things like `match X { x: 1 } { ... }` now need to be written with parentheses, so the lint should avoid warning in cases like that.
- Loading branch information
Showing
2 changed files
with
74 additions
and
13 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
64019e7
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@64019e7
64019e7
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/struct-paren-lint = 64019e7 into auto
64019e7
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/struct-paren-lint = 64019e7 merged ok, testing candidate = abdf71c
64019e7
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/77
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/78
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/78
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/78
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/81
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/82
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/81
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/87
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/82
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/81
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/84
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/82
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/81
64019e7
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 = abdf71c