[WIP] Register redundant_field_names and non_expressive_names as early passes#5518
[WIP] Register redundant_field_names and non_expressive_names as early passes#5518flip1995 wants to merge 3 commits intorust-lang:masterfrom
Conversation
|
No tests, since we can't really test libraries. I tested it locally and this fixed it (tRust Me™) |
|
@bors r=phansch |
|
📌 Commit 61b0657 has been approved by |
|
🌲 The tree is currently closed for pull requests below priority 1, this pull request will be tested once the tree is reopened |
Register redundant_field_names and non_expressive_names as early passes Fixes rust-lang#5356 Fixes rust-lang#5521 We should move all pre_expansion_passes to early_passes, since they were soft deprecated in the rust compiler IIUC. changelog: none
|
@bors r- |
|
I will get back to this ASAP. |
|
☔ The latest upstream changes (presumably #5506) made this pull request unmergeable. Please resolve the merge conflicts. |
|
I am not very familiar with the GitHub PR process, but this hasn't been merged yet, has it? It is an issue I would love to see fixed and it seems the code to do this is already there? :) |
|
The merged failed in a rollup. I haven't got back to this PR to check what causes these failures. If you have some time, you can take over here. Otherwise I try to complete this ASAP. (or ASAM, as soon as motivated) |
|
So I just resolved a merge conflict with the Edit: I've opened a new PR #5589 where I resolved the merge conflict. |
61b0657 to
ac37507
Compare
|
Blocked on #5587. |
|
Still failing... I think the similar_names lint requires a rewrite. |
4cd97a9 to
cedd6d7
Compare
cedd6d7 to
ea6b330
Compare
|
Quick update: since one lint would need a rewrite, I plan to split this up in two PRs. I don't know when I will get to this though, since I want to prioritize to review PRs by other contributors for now. If someone wants to pick this up, feel free to do so. |
I can work on this as there seems to be some demand (I'm assuming @phansch is assigned as a reviewer, if you're working on it it's all yours :)
Argh, I was not aware of this and just created a new pre-expansion pass in #5643 ... Maybe it's not the best idea to merge it, I will leave a comment there to discuss. @flip1995 do you have a link to the issue in the rust repo by any chance? I searched but found rust-lang/rust#69838 which just speaks about it IIUC |
|
@ebroto Great, thanks for taking over! There is not a real issue, since the existence of the pre-expansion passes is just technical debt. Here's a link to the comment talking about this of the PR you linked: rust-lang/rust#69838 (comment) |
…ion, r=cjgillot Document that pre-expansion lint passes are softly deprecated The pre-expansion lint pass has been softly deprecated since rust-lang#69838. Every once in a while I see someone mention it as a possibility, only get the feedback that it's deprecated. This PR officially documents that the method is soft deprecated to have a single point of truth for it. That's it. Have a great rest of the day 🙃 --- * See [rust#69838](rust-lang#69838) * See [rust-clippy#5518](rust-lang/rust-clippy#5518)
…ion, r=cjgillot Document that pre-expansion lint passes are softly deprecated The pre-expansion lint pass has been softly deprecated since rust-lang#69838. Every once in a while I see someone mention it as a possibility, only get the feedback that it's deprecated. This PR officially documents that the method is soft deprecated to have a single point of truth for it. That's it. Have a great rest of the day 🙃 --- * See [rust#69838](rust-lang#69838) * See [rust-clippy#5518](rust-lang/rust-clippy#5518)
…ion, r=cjgillot Document that pre-expansion lint passes are softly deprecated The pre-expansion lint pass has been softly deprecated since rust-lang#69838. Every once in a while I see someone mention it as a possibility, only get the feedback that it's deprecated. This PR officially documents that the method is soft deprecated to have a single point of truth for it. That's it. Have a great rest of the day 🙃 --- * See [rust#69838](rust-lang#69838) * See [rust-clippy#5518](rust-lang/rust-clippy#5518)
…ion, r=cjgillot Document that pre-expansion lint passes are softly deprecated The pre-expansion lint pass has been softly deprecated since rust-lang#69838. Every once in a while I see someone mention it as a possibility, only get the feedback that it's deprecated. This PR officially documents that the method is soft deprecated to have a single point of truth for it. That's it. Have a great rest of the day 🙃 --- * See [rust#69838](rust-lang#69838) * See [rust-clippy#5518](rust-lang/rust-clippy#5518)
Fixes #5356
Fixes #5521
We should move all pre_expansion_passes to early_passes, since they were soft deprecated in the rust compiler IIUC.
changelog: none