-
Notifications
You must be signed in to change notification settings - Fork 13k
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 single-use lifetimes during AST resolution #96833
Conversation
c4ce5f5
to
64c8663
Compare
This comment has been minimized.
This comment has been minimized.
This comment was marked as resolved.
This comment was marked as resolved.
b4cbf5e
to
f629d7d
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
4799029
to
69b9166
Compare
r=me after squashing review commits into main commits. |
a7e8836
to
563916d
Compare
@bors r=petrochenkov |
📌 Commit 563916d has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (b5caa5a): comparison url. Instruction count
Max RSS (memory usage)Results
CyclesResults
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression Footnotes |
This PR rewrites
single_use_lifetime
andunused_lifetime
lints to be based on the AST.We have more information at our disposal, so we can reduce the amount of false positives.
Remaining false positive: single-use lifetimes in argument-position impl-trait.
I'm waiting for #96529 to be fixed to have a clean and proper solution here.
Closes #54079
Closes #55057
Closes #55058
Closes #60554
Closes #69952
r? @petrochenkov