Skip to content

Mark method receivers in builtin derives as being from the derive.#149350

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
Jarcho:derive_recv_ctxt
Apr 6, 2026
Merged

Mark method receivers in builtin derives as being from the derive.#149350
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
Jarcho:derive_recv_ctxt

Conversation

@Jarcho
Copy link
Copy Markdown
Contributor

@Jarcho Jarcho commented Nov 26, 2025

View all comments

Another small annoyance while working on clippy. This was clearly using the root context on purpose, but it also has no reason to do so. All the uses of the receiver are generated by the macros so they can just use the marked context rather than the root.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged-by-bors This PR was explicitly merged by bors. 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.

7 participants