]> git.lizzy.rs Git - rust.git/commit
Auto merge of #53685 - alexcrichton:more-keywords, r=varkor
authorbors <bors@rust-lang.org>
Thu, 30 Aug 2018 03:30:23 +0000 (03:30 +0000)
committerbors <bors@rust-lang.org>
Thu, 30 Aug 2018 03:30:23 +0000 (03:30 +0000)
commitf1a5373a1b6222cf510d410f37278012b096fbfb
treeee5d1a5b01e2d918cf069b7d443d348cffc83954
parent6244625cb47f810cd457643ae6eafe76a4f4da76
parent003cab25d7619f1eabb7de01ce6fa1ff3226b511
Auto merge of #53685 - alexcrichton:more-keywords, r=varkor

Generalize `async_idents` to all new keywords

This commit generalizes the existing `async_idents` lint to easily encompass
other identifiers that will be keywords in future editions. The new lint is
called `keyword_idents` and the old `async_idents` lint is registered as renamed
to this new lint.

As a proof of concept the `try` keyword was added to this list as it looks to be
listed as a keyword in the 2018 edition only. The `await` keyword was not added
as it's not listed as a keyword yet.

Closes #53077