add new lint: rest_when_destructuring_struct#15000
Open
Erk- wants to merge 15 commits intorust-lang:masterfrom
Open
add new lint: rest_when_destructuring_struct#15000Erk- wants to merge 15 commits intorust-lang:masterfrom
rest_when_destructuring_struct#15000Erk- wants to merge 15 commits intorust-lang:masterfrom
Conversation
Collaborator
|
r? @Alexendoo rustbot has assigned @Alexendoo. Use |
1504461 to
4cdbec3
Compare
Centri3
reviewed
Jun 7, 2025
72913a1 to
a314686
Compare
|
Lintcheck changes for 2a4b3ce
This comment will be updated if you push new changes |
jhpratt
added a commit
to jhpratt/rust
that referenced
this pull request
Aug 24, 2025
…rors add span to struct pattern rest (..) Struct pattern rest (`..`) did not retain span information compared to normal fields. This patch adds span information for it. The motivation of this patch comes from when I implemented this PR for Clippy: rust-lang/rust-clippy#15000 (comment) It is possible to get the span of the Et cetera in a bit roundabout way, but I thought this would be nicer.
jhpratt
added a commit
to jhpratt/rust
that referenced
this pull request
Aug 24, 2025
…rors add span to struct pattern rest (..) Struct pattern rest (`..`) did not retain span information compared to normal fields. This patch adds span information for it. The motivation of this patch comes from when I implemented this PR for Clippy: rust-lang/rust-clippy#15000 (comment) It is possible to get the span of the Et cetera in a bit roundabout way, but I thought this would be nicer.
fmease
added a commit
to fmease/rust
that referenced
this pull request
Sep 1, 2025
…rors add span to struct pattern rest (..) Struct pattern rest (`..`) did not retain span information compared to normal fields. This patch adds span information for it. The motivation of this patch comes from when I implemented this PR for Clippy: rust-lang/rust-clippy#15000 (comment) It is possible to get the span of the Et cetera in a bit roundabout way, but I thought this would be nicer.
jhpratt
added a commit
to jhpratt/rust
that referenced
this pull request
Sep 2, 2025
…rors add span to struct pattern rest (..) Struct pattern rest (`..`) did not retain span information compared to normal fields. This patch adds span information for it. The motivation of this patch comes from when I implemented this PR for Clippy: rust-lang/rust-clippy#15000 (comment) It is possible to get the span of the Et cetera in a bit roundabout way, but I thought this would be nicer.
GuillaumeGomez
added a commit
to GuillaumeGomez/rust
that referenced
this pull request
Sep 2, 2025
…rors add span to struct pattern rest (..) Struct pattern rest (`..`) did not retain span information compared to normal fields. This patch adds span information for it. The motivation of this patch comes from when I implemented this PR for Clippy: rust-lang/rust-clippy#15000 (comment) It is possible to get the span of the Et cetera in a bit roundabout way, but I thought this would be nicer.
rust-timer
added a commit
to rust-lang/rust
that referenced
this pull request
Sep 2, 2025
Rollup merge of #145783 - Erk-:et-cetera-span, r=compiler-errors add span to struct pattern rest (..) Struct pattern rest (`..`) did not retain span information compared to normal fields. This patch adds span information for it. The motivation of this patch comes from when I implemented this PR for Clippy: rust-lang/rust-clippy#15000 (comment) It is possible to get the span of the Et cetera in a bit roundabout way, but I thought this would be nicer.
github-actions bot
pushed a commit
to rust-lang/miri
that referenced
this pull request
Sep 3, 2025
add span to struct pattern rest (..) Struct pattern rest (`..`) did not retain span information compared to normal fields. This patch adds span information for it. The motivation of this patch comes from when I implemented this PR for Clippy: rust-lang/rust-clippy#15000 (comment) It is possible to get the span of the Et cetera in a bit roundabout way, but I thought this would be nicer.
flip1995
pushed a commit
to flip1995/rust-clippy
that referenced
this pull request
Sep 4, 2025
add span to struct pattern rest (..) Struct pattern rest (`..`) did not retain span information compared to normal fields. This patch adds span information for it. The motivation of this patch comes from when I implemented this PR for Clippy: rust-lang#15000 (comment) It is possible to get the span of the Et cetera in a bit roundabout way, but I thought this would be nicer.
mohe2015
pushed a commit
to tucan-plus/rustfmt
that referenced
this pull request
Sep 6, 2025
add span to struct pattern rest (..) Struct pattern rest (`..`) did not retain span information compared to normal fields. This patch adds span information for it. The motivation of this patch comes from when I implemented this PR for Clippy: rust-lang/rust-clippy#15000 (comment) It is possible to get the span of the Et cetera in a bit roundabout way, but I thought this would be nicer.
This comment has been minimized.
This comment has been minimized.
6868cd5 to
b52ea0e
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
b52ea0e to
45d2dfa
Compare
This comment has been minimized.
This comment has been minimized.
Alexendoo
reviewed
Oct 8, 2025
ada4a
reviewed
Oct 11, 2025
ada4a
reviewed
Oct 13, 2025
7770ee6 to
e7b7c82
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
e95f141 to
2a3b768
Compare
This comment has been minimized.
This comment has been minimized.
Contributor
Author
|
@Alexendoo Do you have some time to have a second look at this pr? |
This comment has been minimized.
This comment has been minimized.
2a3b768 to
b6864cc
Compare
Collaborator
|
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
Collaborator
|
☔ The latest upstream changes (possibly 741b684) made this pull request unmergeable. Please resolve the merge conflicts. |
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.
Add a new lint that warns when using a rest pattern when destructuring a struct. This lint was requested in this comment #10666 (comment) by @xxchan.
changelog: [
rest_when_destructuring_struct] new lint