clippy: add deprecation comment for from_iter_instead_of_collect lint - #14062
clippy: add deprecation comment for from_iter_instead_of_collect lint#14062cakebaker wants to merge 1 commit into
from_iter_instead_of_collect lint#14062Conversation
|
GNU testsuite comparison: |
Merging this PR will degrade performance by 4.15%
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ❌ | Simulation | du_summarize_balanced_tree[(5, 4, 10)] |
16.1 ms | 16.8 ms | -4.15% |
Tip
Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.
Comparing cakebaker:clippy_remove_lint (564846d) with main (a5a7249)
Footnotes
-
50 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩
|
The issue is that we set |
from_iter_instead_of_collect
a6fef7a to
564846d
Compare
|
@xtqqczze yes, you are right. I re-added the lint and added a TODO that it can be removed when we have an MSRV of 1.98. |
from_iter_instead_of_collect lintfrom_iter_instead_of_collect lint
|
Do we want something like: [workspace.lints.rust]
renamed_and_removed_lints = { level = "allow", priority = -1 } |
|
Hm, I'm not sure about this setting as it is useful to know when a lint gets deprecated. Maybe it would rather make sense to set the MSRV for clippy? |
|
Clippy should already respect |
|
I have to say, it is annoying to not get clean output from: $ cargo clippy --workspace -q
warning: lint `clippy::from_iter_instead_of_collect` has been removed: lint has proved problematic
|
= note: requested on the command line with `-A clippy::from_iter_instead_of_collect`
= note: `#[warn(renamed_and_removed_lints)]` on by default
|
This PR
removes theadds a deprecation comment for thefrom_iter_instead_of_collectlint fromCargo.tomlfrom_iter_instead_of_collectlint as it has been deprecated upstream (rust-lang/rust-clippy#17208).