Skip to content

Handle different root contexts in SpanlessEq#15793

Merged
dswij merged 1 commit intorust-lang:masterfrom
Jarcho:eq_ctxt
May 2, 2026
Merged

Handle different root contexts in SpanlessEq#15793
dswij merged 1 commit intorust-lang:masterfrom
Jarcho:eq_ctxt

Conversation

@Jarcho
Copy link
Copy Markdown
Contributor

@Jarcho Jarcho commented Sep 30, 2025

View all comments

This is needed for SpanlessEq to work correctly inside a macro expansion. The context selected for some of the lints may be wrong, but most of them don't handle macros correctly in the first place so this won't really be a regression. Without this change SpanlessEq would essentially assume the root context which isn't always correct.

changelog: none

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Sep 30, 2025
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Sep 30, 2025

r? @blyxyas

rustbot has assigned @blyxyas.
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

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Sep 30, 2025

Lintcheck changes for 14e481d

Lint Added Removed Changed
clippy::match_same_arms 0 1 0

This comment will be updated if you push new changes

@Jarcho
Copy link
Copy Markdown
Contributor Author

Jarcho commented Sep 30, 2025

The lintcheck change looks like the arms could technically be merged. It's no longer being matched because a variable passed in to quote_spanned has a different name. In general this would be a FP because macro expansion can change based on that.

@rustbot

This comment has been minimized.

@blyxyas
Copy link
Copy Markdown
Member

blyxyas commented Oct 28, 2025

I currently can't handle any reviews, sorry for the delay. I'll re-rotate and another team member will take this one.
r? clippy

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Oct 28, 2025

Error: assign handler unexpectedly failed in this comment: error decoding response body

Please file an issue on GitHub at triagebot if there's a problem with this bot, or reach out on #triagebot on Zulip.

@blyxyas
Copy link
Copy Markdown
Member

blyxyas commented Oct 28, 2025

r? blyxyas

Seems that the handler is failing for any assignation. I'll post a message on Zulip

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Oct 28, 2025

Error: assign handler unexpectedly failed in this comment: error decoding response body

Please file an issue on GitHub at triagebot if there's a problem with this bot, or reach out on #triagebot on Zulip.

@Urgau
Copy link
Copy Markdown
Member

Urgau commented Oct 29, 2025

r? clippy

@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

@Jarcho Jarcho force-pushed the eq_ctxt branch 2 times, most recently from 5288848 to dc70b3e Compare February 23, 2026 00:13
@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

@Jarcho
Copy link
Copy Markdown
Contributor Author

Jarcho commented Mar 28, 2026

r? clippy

@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 21, 2026

This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@dswij dswij added this pull request to the merge queue May 2, 2026
Merged via the queue into rust-lang:master with commit 03a2acd May 2, 2026
11 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label May 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants