Skip to content

Lint 'static lifetimes in the type of statics/consts #1762

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

Closed
oli-obk opened this issue May 15, 2017 · 3 comments
Closed

Lint 'static lifetimes in the type of statics/consts #1762

oli-obk opened this issue May 15, 2017 · 3 comments
Labels
A-lint Area: New lints good first issue These issues are a good way to get started with Clippy T-AST Type: Requires working with the AST

Comments

@oli-obk
Copy link
Contributor

oli-obk commented May 15, 2017

see rust-lang/rust#41957 (comment) for an example

RFC 1623 allows writing const FOO: &str = "bar" instead of const FOO: &'static str = "bar"

@oli-obk oli-obk added good first issue These issues are a good way to get started with Clippy A-lint Area: New lints T-AST Type: Requires working with the AST labels May 15, 2017
@gbip
Copy link
Contributor

gbip commented Jun 9, 2017

I might want to implement this lint as a first contribution, but first I have to make sure I have the time to do so.
I will keep you updated !

@mcarton
Copy link
Member

mcarton commented Jun 9, 2017

@gbip Great! Don't hesitate to ask if you have any question.

@oli-obk
Copy link
Contributor Author

oli-obk commented Oct 20, 2017

This has been implemented in #2151

@oli-obk oli-obk closed this as completed Oct 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lint Area: New lints good first issue These issues are a good way to get started with Clippy T-AST Type: Requires working with the AST
Projects
None yet
Development

No branches or pull requests

4 participants