Fix diagnostics for @ .. binding pattern in tuples and tuple structs#72677
Merged
bors merged 1 commit intorust-lang:masterfrom May 30, 2020
Merged
Fix diagnostics for @ .. binding pattern in tuples and tuple structs#72677bors merged 1 commit intorust-lang:masterfrom
@ .. binding pattern in tuples and tuple structs#72677bors merged 1 commit intorust-lang:masterfrom
Conversation
Contributor
Author
|
Modified the suggestion slightly to better address attempts to define a e.g., |
estebank
requested changes
May 28, 2020
Contributor
estebank
left a comment
There was a problem hiding this comment.
A few nitpicks, let me know what you think.
estebank
reviewed
May 29, 2020
estebank
reviewed
May 29, 2020
Contributor
Author
|
Thanks Esteban! I committed the two new suggestions and will push updated test files. |
Contributor
Author
|
Tests updated with the latest round of changes in dbb2d6b |
Contributor
Author
|
@estebank I'll wait for this to pass the CI tests and then will squash. Let me know if you feel that any other changes are needed. This looks good 👍 |
fix comment add newline for tidy fmt error... edit suggestion message change the suggestion message to better handle cases with binding modes Apply suggestions from estebank code review Co-authored-by: Esteban Kuber <[email protected]> edits to address source review Apply suggestions from estebank code review rust-lang#2 Co-authored-by: Esteban Kuber <[email protected]> update test files
Contributor
Author
|
Squashed to 27ed143 All set on my end. Please let me know if there is anything else that I need to address. Thanks again Esteban. |
Contributor
|
@bors r+ rollup |
Collaborator
|
📌 Commit 27ed143 has been approved by |
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
May 30, 2020
Rollup of 10 pull requests Successful merges: - rust-lang#72033 (Update RELEASES.md for 1.44.0) - rust-lang#72162 (Add Extend::{extend_one,extend_reserve}) - rust-lang#72419 (Miri read_discriminant: return a scalar instead of raw underlying bytes) - rust-lang#72621 (Don't bail out of trait selection when predicate references an error) - rust-lang#72677 (Fix diagnostics for `@ ..` binding pattern in tuples and tuple structs) - rust-lang#72710 (Add test to make sure -Wunused-crate-dependencies works with tests) - rust-lang#72724 (Revert recursive `TokenKind::Interpolated` expansion for now) - rust-lang#72741 (Remove unused mut from long-linker-command-lines test) - rust-lang#72750 (Remove remaining calls to `as_local_node_id`) - rust-lang#72752 (remove mk_bool) Failed merges: r? @ghost
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #72574
Associated #72534 #72373
Includes a new suggestion with
Applicability::MaybeIncorrectconfidence level.Before
tuple
tuple struct
After
Note: final output edited during source review discussion, see thread for details
tuple
tuple struct
r? @estebank