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 mode for unused private functions #5494

Closed
bstrie opened this issue Mar 22, 2013 · 2 comments
Closed

Lint mode for unused private functions #5494

bstrie opened this issue Mar 22, 2013 · 2 comments
Labels
A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Comments

@bstrie
Copy link
Contributor

bstrie commented Mar 22, 2013

There's already a lint mode for unused variables, so one for functions makes sense as well, though obviously it should consider private functions only. Not sure whether it needs to be on by default.

@catamorphism
Copy link
Contributor

far-future

@bstrie
Copy link
Contributor Author

bstrie commented Jun 26, 2013

Dupe of #1749, closing.

@bstrie bstrie closed this as completed Jun 26, 2013
oli-obk pushed a commit to oli-obk/rust that referenced this issue May 2, 2020
…ion, r=flip1995

Fixed incorrect suggestion of `clone_double_ref` lint

- Added `<_>` to suggestion
- Changed help message
- Added new tests
Closes rust-lang#5494

changelog: Improve suggestion of [`clone_double_ref`]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Projects
None yet
Development

No branches or pull requests

2 participants