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

rust emits a warning at line 0 when compiling an empty proc-macro crate #47692

Closed
Eijebong opened this issue Jan 24, 2018 · 2 comments
Closed
Labels
A-diagnostics Area: Messages for errors, warnings, and lints

Comments

@Eijebong
Copy link
Contributor

Steps to reproduce:

  • Create a new crate
  • Set it as proc-macro = true
  • Empty the src/lib.rs file
  • Compile
  • Profit
warning: unused variable: `registrar`
--> src/lib.rs:0:1
 |
 |
 = note: #[warn(unused_variables)] on by default
 = note: to avoid this warning, consider using `_registrar` instead
@etaoins
Copy link
Contributor

etaoins commented Jan 24, 2018

This was fixed in #47655

@estebank
Copy link
Contributor

Closing as per the above comment.

@estebank estebank added the A-diagnostics Area: Messages for errors, warnings, and lints label Jan 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints
Projects
None yet
Development

No branches or pull requests

3 participants