Skip to content

WIP: mut_mut: generalize the from-expansion check #15419

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 1 commit into
base: master
Choose a base branch
from

Conversation

ada4a
Copy link
Contributor

@ada4a ada4a commented Aug 5, 2025

The check was added in #1032, which addressed #939, which did complain about the particular case of a for-loop. But for some reason, the fix also concentrated on for-loops only. I'm pretty sure Span::from_expansion is more generally helpful.

WIP because this apparently also stops the lint from firing on the inline! proc-macro thing, which I'm not quite sure is correct?.. That would resolve #15417 (comment) though I guess

changelog: none

@rustbot
Copy link
Collaborator

rustbot commented Aug 5, 2025

r? @Alexendoo

rustbot has assigned @Alexendoo.
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 5, 2025
@ada4a ada4a force-pushed the mut_mut-simpler-from-expansion-check branch from 1eaa400 to 5982c1a Compare August 7, 2025 21:55
@ada4a ada4a force-pushed the mut_mut-simpler-from-expansion-check branch from 5982c1a to d2e8b17 Compare August 10, 2025 15:21
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.

3 participants