Lint single-use lifetimes during AST resolution#96833
Merged
bors merged 3 commits intorust-lang:masterfrom May 20, 2022
Merged
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
Contributor
|
r=me after squashing review commits into main commits. |
a7e8836 to
563916d
Compare
Contributor
Author
|
@bors r=petrochenkov |
Collaborator
|
📌 Commit 563916d has been approved by |
Collaborator
Collaborator
|
☀️ Test successful - checks-actions |
This was referenced May 20, 2022
Merged
Collaborator
|
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 |
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR rewrites
single_use_lifetimeandunused_lifetimelints 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