Rename the 2018 edition lint names by alexcrichton · Pull Request #50620 · rust-lang/rust (original) (raw)

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation10 Commits1 Checks0 Files changed

Conversation

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

[ Show hidden characters]({{ revealButtonHref }})

alexcrichton

@alexcrichton

@rust-highfive

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@Mark-Simulacrum

What about lints that can change 2015 code to 2015 code while updating certain idioms? For example, I think there's a few features (maybe dyn Trait?) which will work in the 2015 edition, and authors might want to have rust_2018_idioms mean different things depending on the current edition: in the 2015 edition these are non-2018 edition dependent lints, and in 2018 they are all the lints, both those dependent on the edition and not.

@Manishearth

Those lints can fit in either category, I don't think there are strong opinions on which category they belong in.

@aturon had written a doc about this but I can't find it rn

@aturon

@alexcrichton

@Mark-Simulacrum I'd personally expect lints like that to get turned on by default over time in the sense that yeah we'd even want 2015 (and really encourage 2018) code to migrate. I may be alone in the opinion of turning these eventually on by default though!

For the most part these lints are actually internal implementation details that others won't access. Rather cargo-fix will translate --prepare-for 2018 to -W rust-2018-compatibility and --edition 2018 would translate to -W rust-2018-idioms (or something like that). In general users won't have to look too closely at these names.

@nikomatsakis

@bors

📌 Commit d636aec has been approved by nikomatsakis

@bors bors added S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

and removed S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

labels

May 10, 2018

@aturon

@bors: p=1

prioritizing for edition preview

@bors

bors added a commit that referenced this pull request

May 11, 2018

@bors

Rename the 2018 edition lint names

@bors

killercup added a commit to killercup/rustfix that referenced this pull request

May 13, 2018

@killercup

killercup added a commit to killercup/rustfix that referenced this pull request

May 13, 2018

@killercup

Labels

S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.