Skip to content

fix autodiff parsing for non-trait impl#153324

Open
ZuseZ4 wants to merge 1 commit intorust-lang:mainfrom
ZuseZ4:fix-ad-impl-parsing
Open

fix autodiff parsing for non-trait impl#153324
ZuseZ4 wants to merge 1 commit intorust-lang:mainfrom
ZuseZ4:fix-ad-impl-parsing

Conversation

@ZuseZ4
Copy link
Member

@ZuseZ4 ZuseZ4 commented Mar 3, 2026

fixes: #153322

@Sa4dUs Looks like we missed a case.
But also, going through the code, line 455 seems suspicious to me:
Annotatable::AssocItem(d_fn, Impl { of_trait: false })
Are we sure that this should always be an Impl, and never an impl of a trait?

r? @oli-obk

@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 Mar 3, 2026
@rustbot
Copy link
Collaborator

rustbot commented Mar 3, 2026

oli-obk is not on the review rotation at the moment.
They may take a while to respond.

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@ZuseZ4 ZuseZ4 force-pushed the fix-ad-impl-parsing branch from d540382 to 52e0f3f Compare March 3, 2026 04:30
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. 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.

Autodiff frontend fails to macroexpand to valid code on bare Impl blocks

4 participants