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

Lint for unused syntax variables in macros #18820

Closed
huonw opened this issue Nov 9, 2014 · 2 comments
Closed

Lint for unused syntax variables in macros #18820

huonw opened this issue Nov 9, 2014 · 2 comments
Labels
A-lints Area: Lints (warnings about flaws in source code) such as unused_mut. A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)

Comments

@huonw
Copy link
Member

huonw commented Nov 9, 2014

E.g.

macro_rules! foo {
    ($func: ident) => { () } // warning: unused syntax variable `func`
}
@huonw huonw added A-lints Area: Lints (warnings about flaws in source code) such as unused_mut. A-syntaxext Area: Syntax extensions labels Nov 9, 2014
@frewsxcv
Copy link
Member

Visiting for triage: this is still an issue

Playpen: http://is.gd/jfjxWe

@sanxiyn sanxiyn added A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) and removed A-syntaxext Area: Syntax extensions labels Nov 9, 2015
@steveklabnik
Copy link
Member

Since new lints have a big impact on users of rustc, the policy is that they should go through the RFC process like other user-facing changes. As such, I'm going to give this one a close, but if anyone comes across this ticket and wants this lint, consider adding it to clippy and/or writing up an RFC. Thanks!

lnicola pushed a commit to lnicola/rust that referenced this issue Jan 7, 2025
…iteral-render

Fix no space insert before and after if value is only spaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lints Area: Lints (warnings about flaws in source code) such as unused_mut. A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
Projects
None yet
Development

No branches or pull requests

4 participants