Skip to content

Extend extra_unused_lifetimes for spurious for<'a>#17031

Open
TheNeikos wants to merge 2 commits into
rust-lang:masterfrom
TheNeikos:feature/add_for_lifetime_warnings
Open

Extend extra_unused_lifetimes for spurious for<'a>#17031
TheNeikos wants to merge 2 commits into
rust-lang:masterfrom
TheNeikos:feature/add_for_lifetime_warnings

Conversation

@TheNeikos
Copy link
Copy Markdown
Contributor

@TheNeikos TheNeikos commented May 18, 2026

changelog: [extra_unused_lifetimes]: Detect unused for<'a> lifetime bounds

This fixes #13812 and #14334.


This was done as part of the "Crafting errors like rustc" workshop at Rustweek :D

r? @jdonszelmann

Co-authored-by: Jona Draaijer <jcdra1@gmail.com>
Signed-off-by: Marcel Müller <neikos@neikos.email>
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label May 18, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 18, 2026

Failed to set assignee to jdonszelmann: invalid assignee

Note: Only org members with at least the repository "read" role, users with write permissions, or people who have commented on the PR may be assigned.

Comment thread clippy_lints/src/lifetimes.rs Outdated
Signed-off-by: Marcel Müller <neikos@neikos.email>
@TheNeikos TheNeikos force-pushed the feature/add_for_lifetime_warnings branch from d959bec to f8b712d Compare May 19, 2026 09:01
@samueltardieu
Copy link
Copy Markdown
Member

r? clippy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties

Projects

None yet

Development

Successfully merging this pull request may close these issues.

extra_unused_lifetimes does not warn on spurious for<'a>

4 participants