Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign uprewrite `...` to `..=` as an idiom lint for Rust 2018 edition #51043
Comments
nikomatsakis
added
the
A-rust-2018-preview
label
May 24, 2018
This comment has been minimized.
This comment has been minimized.
|
Do we have an existing lint for this? |
nikomatsakis
added
the
WG-epoch
label
May 24, 2018
This comment has been minimized.
This comment has been minimized.
|
If we hope to someday get rid of |
This comment has been minimized.
This comment has been minimized.
|
One remaining issue of fn main() {
match &5 {
&3...6 => {}
_ => {}
}
}if we just
Note that fn main() {
match &5 {
3..=6 => {} // no &, no (), no whatever
_ => {}
}
} |
zackmdavis
added a commit
to zackmdavis/rust
that referenced
this issue
May 29, 2018
zackmdavis
added a commit
to zackmdavis/rust
that referenced
this issue
May 29, 2018
zackmdavis
referenced this issue
May 29, 2018
Merged
lint to favor `..=` over `...` range patterns; migrate to `..=` throughout codebase #51149
nikomatsakis
referenced this issue
May 29, 2018
Closed
Tracking issue for RFC 554: `pattern_parentheses` feature #51087
This comment has been minimized.
This comment has been minimized.
I classified it as an idiom lint because the code will not cause a hard error in the new edition, even if it is frowned upon. |
zackmdavis
added a commit
to zackmdavis/rust
that referenced
this issue
Jun 3, 2018
zackmdavis
added a commit
to zackmdavis/rust
that referenced
this issue
Jun 3, 2018
zackmdavis
added a commit
to zackmdavis/rust
that referenced
this issue
Jun 3, 2018
zackmdavis
added a commit
to zackmdavis/rust
that referenced
this issue
Jun 3, 2018
zackmdavis
added a commit
to zackmdavis/rust
that referenced
this issue
Jun 19, 2018
zackmdavis
added a commit
to zackmdavis/rust
that referenced
this issue
Jun 19, 2018
zackmdavis
added a commit
to zackmdavis/rust
that referenced
this issue
Jun 21, 2018
zackmdavis
added a commit
to zackmdavis/rust
that referenced
this issue
Jun 21, 2018
zackmdavis
added a commit
to zackmdavis/rust
that referenced
this issue
Jun 24, 2018
zackmdavis
added a commit
to zackmdavis/rust
that referenced
this issue
Jun 24, 2018
zackmdavis
added a commit
to zackmdavis/rust
that referenced
this issue
Jun 24, 2018
bors
added a commit
that referenced
this issue
Jun 25, 2018
bors
added a commit
that referenced
this issue
Jun 26, 2018
zackmdavis
added a commit
to zackmdavis/rust
that referenced
this issue
Jun 26, 2018
zackmdavis
added a commit
to zackmdavis/rust
that referenced
this issue
Jun 26, 2018
bors
added a commit
that referenced
this issue
Jun 26, 2018
nrc
added
the
A-edition-2018-lints
label
Jul 2, 2018
This comment has been minimized.
This comment has been minimized.
|
@zackmdavis if you've got a moment, can you write up a listing of what's left after #51149 landed? |
alexcrichton
added this to the Rust 2018 Release Candidate milestone
Jul 11, 2018
This comment has been minimized.
This comment has been minimized.
@alexcrichton: the comment above by @kennytm should still be addressed; the lint suggestion is marked as maybe-incorrect for this reason. If pattern-parentheses are stabilized (which itself reportedly needs more testing), using them for a correct suggestion when needed will be very easy. |
This comment has been minimized.
This comment has been minimized.
|
Ok great, thanks! |
Mark-Simulacrum
modified the milestones:
Rust 2018 Release Candidate,
Rust 2018 Release
Jul 24, 2018
zackmdavis
referenced this issue
Jul 25, 2018
Closed
Should the rust_2018_idioms lint group be mentioned in documentation? #52679
XAMPPRocky
added
C-enhancement
T-compiler
labels
Oct 2, 2018
This comment has been minimized.
This comment has been minimized.
|
visited for T-compiler triage. It seems like it was blocked on stabilization of the pattern-parentheses feature. So what are the next steps, and who wants to own this? |
varkor
self-assigned this
Nov 8, 2018
This comment has been minimized.
This comment has been minimized.
|
more triage notes: P-high. @varkor has agreed to take this on and/or mentor it. |
pnkfelix
added
the
P-high
label
Nov 8, 2018
varkor
referenced this issue
Nov 10, 2018
Merged
Rewrite `...` as `..=` as a `MachineApplicable` 2018 idiom lint #55852
pietroalbini
added a commit
to pietroalbini/rust
that referenced
this issue
Nov 12, 2018
This comment has been minimized.
This comment has been minimized.
|
Removing from the milestone, as idiom lints are not part of the Rust 2018 release. |
nikomatsakis commentedMay 24, 2018
•
edited by alexcrichton
Current status
Implemented in #51149 but currently not marked as automatically applicable due to this issue which is explained below