Skip to content

Use span before macro expansion in lint for-loops-over-falibles #140801

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

Conversation

xizheyin
Copy link
Contributor

@xizheyin xizheyin commented May 8, 2025

Fixes #140747

I think there are going to be a lot of cases where macros are expanded in the compiler resulting in span offsets, and I'd like to know how that's typically handled. Does it have to be handled specially every time?

@rustbot
Copy link
Collaborator

rustbot commented May 8, 2025

r? @SparrowLii

rustbot has assigned @SparrowLii.
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 S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels May 8, 2025
Copy link
Member

@SparrowLii SparrowLii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@SparrowLii
Copy link
Member

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented May 9, 2025

📌 Commit 88c1796 has been approved by SparrowLii

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 9, 2025
jhpratt added a commit to jhpratt/rust that referenced this pull request May 9, 2025
Use span before macro expansion in lint for-loops-over-falibles

Fixes rust-lang#140747

I think there are going to be a lot of cases where macros are expanded in the compiler resulting in span offsets, and I'd like to know how that's typically handled. Does it have to be handled specially every time?
jhpratt added a commit to jhpratt/rust that referenced this pull request May 9, 2025
Use span before macro expansion in lint for-loops-over-falibles

Fixes rust-lang#140747

I think there are going to be a lot of cases where macros are expanded in the compiler resulting in span offsets, and I'd like to know how that's typically handled. Does it have to be handled specially every time?
bors added a commit to rust-lang-ci/rust that referenced this pull request May 9, 2025
Rollup of 5 pull requests

Successful merges:

 - rust-lang#140801 (Use span before macro expansion in lint for-loops-over-falibles)
 - rust-lang#140804 (add signed ints to unn- transmutes to ensure feature parity)
 - rust-lang#140812 (Fix `tests/rustdoc-json` triagebot message path)
 - rust-lang#140817 (bootstrap: more consistent use of `...` when citing configuration snippets)
 - rust-lang#140828 (Enable non-leaf Frame Pointers for Arm64 Windows)

r? `@ghost`
`@rustbot` modify labels: rollup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect span in for_loops_over_fallibles with macros
4 participants