Skip to content

fix autodiff parsing for non-trait impl#153324

Merged
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
ZuseZ4:fix-ad-impl-parsing
Mar 4, 2026
Merged

fix autodiff parsing for non-trait impl#153324
rust-bors[bot] merged 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
@oli-obk
Copy link
Contributor

oli-obk commented Mar 4, 2026

@bors r+ rollup

@rust-bors
Copy link
Contributor

rust-bors bot commented Mar 4, 2026

📌 Commit 52e0f3f has been approved by oli-obk

It is now in the queue for this repository.

@rust-bors rust-bors bot 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 Mar 4, 2026
rust-bors bot pushed a commit that referenced this pull request Mar 4, 2026
Rollup of 5 pull requests

Successful merges:

 - #153341 (std: refactor Xous startup code)
 - #152816 (Check for region dependent goals on type_op itself as well)
 - #153224 (Fix LegacyKeyValueFormat report from docker build: disabled)
 - #153274 (Fix async drop multi crate crash)
 - #153324 (fix autodiff parsing for non-trait impl)
@rust-bors rust-bors bot merged commit e42a3ba into rust-lang:main Mar 4, 2026
11 checks passed
rust-timer added a commit that referenced this pull request Mar 4, 2026
Rollup merge of #153324 - ZuseZ4:fix-ad-impl-parsing, r=oli-obk

fix autodiff parsing for non-trait impl

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 this to the 1.96.0 milestone Mar 4, 2026
@ZuseZ4 ZuseZ4 deleted the fix-ad-impl-parsing branch March 4, 2026 13:34
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.

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

4 participants