Skip to content

Conversation

@flip1995
Copy link
Member

@flip1995 flip1995 commented Feb 28, 2019

The reason I decided to not make this a lint is, that unknown attributes are always a hard error in rustc and also in rustfmt, which cannot be turned off by an allow. This could have been done by introducing a category which would be forbid-by-default. But that would have introduced a new lint category+group for just one lint and also wouldn't be consistent with rustfmt and rustc.

@flip1995 flip1995 added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Feb 28, 2019
@oli-obk
Copy link
Contributor

oli-obk commented Feb 28, 2019

@bors r+

Awesome!

@bors
Copy link
Contributor

bors commented Feb 28, 2019

📌 Commit 9c697c2 has been approved by oli-obk

@bors
Copy link
Contributor

bors commented Feb 28, 2019

⌛ Testing commit 9c697c2 with merge 6e1d471...

bors added a commit that referenced this pull request Feb 28, 2019
Error on unknown or deprecated attributes

The reason I decided to not make this a lint is, that unknown attributes are always a hard error in rustc and also in rustfmt, which cannot be turned off by an `allow`. This could have been done by introducing a category which would be forbid-by-default. But that would have introduced a new lint category+group for just one lint and also wouldn't be consistent with rustfmt and rustc.
@bors
Copy link
Contributor

bors commented Feb 28, 2019

💔 Test failed - checks-travis

@flip1995
Copy link
Member Author

Forgot to format the test.

@bors r=oli-obk

@bors
Copy link
Contributor

bors commented Feb 28, 2019

📌 Commit c4eb780 has been approved by oli-obk

@bors
Copy link
Contributor

bors commented Feb 28, 2019

⌛ Testing commit c4eb780 with merge 275a386...

bors added a commit that referenced this pull request Feb 28, 2019
Error on unknown or deprecated attributes

The reason I decided to not make this a lint is, that unknown attributes are always a hard error in rustc and also in rustfmt, which cannot be turned off by an `allow`. This could have been done by introducing a category which would be forbid-by-default. But that would have introduced a new lint category+group for just one lint and also wouldn't be consistent with rustfmt and rustc.
@bors
Copy link
Contributor

bors commented Feb 28, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: oli-obk
Pushing 275a386 to master...

@bors bors merged commit c4eb780 into rust-lang:master Feb 28, 2019
@flip1995 flip1995 deleted the unknown_attribute branch February 28, 2019 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants