Skip to content

Turn old edition lint (anonymous-parameters) into warn-by-default on 2015#82918

Merged
bors merged 1 commit intorust-lang:masterfrom
Manishearth:edition-2015-warn
Apr 13, 2021
Merged

Turn old edition lint (anonymous-parameters) into warn-by-default on 2015#82918
bors merged 1 commit intorust-lang:masterfrom
Manishearth:edition-2015-warn

Conversation

@Manishearth
Copy link
Member

@Manishearth Manishearth commented Mar 8, 2021

This makes anonymous_parameters and keyword_idents warn-by-default on the 2015 edition. I would also like to do this for absolute_paths_not_starting_with_crate, but I feel that case is slightly less clear-cut.

Note that this only affects code on the 2015 edition, such code is illegal in future editions anyway.

This was spurred by dtolnay/syn#972: old edition syntax breaks tooling (like syn), and while the tooling should be free to find its balance on how much to support prior editions, it does seem like we should be nudging such code towards the newer edition, and we can do that by turning this Allow lint into a Warn.

In general, I feel like migration lints from an old edition should be made Warn after a year or so, and idiom lints for the new edition should be made Warn after a couple months.

cc @m-ou-se, this is for stuff from the 2015-2018 migration but you might be interested.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

disposition-merge This issue / PR is in PFCP or FCP with a disposition to merge it. finished-final-comment-period The final comment period is finished for this PR / Issue. merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-lang Relevant to the language team

Projects

None yet

Development

Successfully merging this pull request may close these issues.