Skip to content
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 and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustc: Lint against #[macro_use] in 2018 idioms #52275

Merged
merged 1 commit into from
Jul 13, 2018

Conversation

alexcrichton
Copy link
Member

This commit adds a lint to the compiler to warn against the #[macro_use]
directive as part of the rust_2018_idioms lint. This lint is turned off by
default and is only enabled when the use_extern_macros feature is also
enabled.

The lint here isn't fully fleshed out as it's just a simple warning rather than
suggestions of how to actually import the macro, but hopefully it's a good base
to start from!

cc #52043

@alexcrichton
Copy link
Member Author

r? @nrc

@rust-highfive rust-highfive assigned nrc and unassigned pnkfelix Jul 11, 2018
@rust-highfive
Copy link
Collaborator

r? @pnkfelix

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

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 11, 2018
@bors

This comment has been minimized.

@nrc
Copy link
Member

nrc commented Jul 11, 2018

lgtm @bors: r+

@bors
Copy link
Contributor

bors commented Jul 11, 2018

📌 Commit 7ac345a04c86381b929343195c56839350898e1b has been approved by nrc

@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 Jul 11, 2018
@alexcrichton
Copy link
Member Author

@bors: r=nrc

@bors
Copy link
Contributor

bors commented Jul 12, 2018

📌 Commit c48e5a0d948e4f276953a2fd31cd6d8b33b3efbe has been approved by nrc

@rust-highfive

This comment has been minimized.

@alexcrichton
Copy link
Member Author

@bors: r=nrc

@bors
Copy link
Contributor

bors commented Jul 12, 2018

📌 Commit 1b32f920655284fa5e2e8cc3b1d938adb8b93722 has been approved by nrc

@rust-highfive

This comment has been minimized.

This commit adds a lint to the compiler to warn against the `#[macro_use]`
directive as part of the `rust_2018_idioms` lint. This lint is turned off by
default and is only enabled when the `use_extern_macros` feature is also
enabled.

The lint here isn't fully fleshed out as it's just a simple warning rather than
suggestions of how to actually import the macro, but hopefully it's a good base
to start from!

cc rust-lang#52043
@alexcrichton
Copy link
Member Author

@bors: r=nrc

@bors
Copy link
Contributor

bors commented Jul 12, 2018

📌 Commit 0b969a9 has been approved by nrc

@bors
Copy link
Contributor

bors commented Jul 13, 2018

⌛ Testing commit 0b969a9 with merge 68c39b9...

bors added a commit that referenced this pull request Jul 13, 2018
rustc: Lint against `#[macro_use]` in 2018 idioms

This commit adds a lint to the compiler to warn against the `#[macro_use]`
directive as part of the `rust_2018_idioms` lint. This lint is turned off by
default and is only enabled when the `use_extern_macros` feature is also
enabled.

The lint here isn't fully fleshed out as it's just a simple warning rather than
suggestions of how to actually import the macro, but hopefully it's a good base
to start from!

cc #52043
@bors
Copy link
Contributor

bors commented Jul 13, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: nrc
Pushing 68c39b9 to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants