Skip to content

let_unit_with_type_underscore: make early-pass #15458

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

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

ada4a
Copy link
Contributor

@ada4a ada4a commented Aug 11, 2025

This kind of supersedes #15386 -- by making the lint early-pass, we get access to TyKind::Parens that surround the type ascription. And with that, we can return to the simpler calculation of span_to_remove.

The biggest hurdle was is_from_proc_macro -- calling that function required me to impl WithSearchPat for rustc_ast::Ty, i.e. ast_ty_search_pat, which I based on ty_search_pat. Since that's a larger change, I could extract it into a PR of its own.

changelog: none

@rustbot
Copy link
Collaborator

rustbot commented Aug 11, 2025

r? @samueltardieu

rustbot has assigned @samueltardieu.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Aug 11, 2025
@ada4a ada4a force-pushed the let-unit-with-type-underscore branch from 43b866d to b506c33 Compare August 11, 2025 14:51
@samueltardieu
Copy link
Member

I won't be able to properly review this PR in the next two weeks, I'll reroll the dice.
r? clippy

@rustbot rustbot assigned Jarcho and unassigned samueltardieu Aug 11, 2025
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.

4 participants