Skip to content

delegation: don't propagate synthetic params, remove lifetime hacks#154364

Open
aerooneqq wants to merge 1 commit intorust-lang:mainfrom
aerooneqq:delegation-generics-small-fixes
Open

delegation: don't propagate synthetic params, remove lifetime hacks#154364
aerooneqq wants to merge 1 commit intorust-lang:mainfrom
aerooneqq:delegation-generics-small-fixes

Conversation

@aerooneqq
Copy link
Contributor

@aerooneqq aerooneqq commented Mar 25, 2026

Some small fixes after new delegation lowering was merged: remove lifetime hacks as now we get only early-bound lifetimes from generics, don't propagate synthetic generic params as now we know that they are synthetic. Fixes #143498. Part of #118212.

r? @petrochenkov

@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 25, 2026
@rust-log-analyzer

This comment has been minimized.

@aerooneqq aerooneqq changed the title Delegation: don't propagate synthetic params, remove lifetime hacks delegation: don't propagate synthetic params, remove lifetime hacks Mar 25, 2026
@aerooneqq aerooneqq force-pushed the delegation-generics-small-fixes branch from 48edf69 to c2383b5 Compare March 25, 2026 10:04
@petrochenkov petrochenkov added the F-fn_delegation `#![feature(fn_delegation)]` label Mar 25, 2026
@petrochenkov
Copy link
Contributor

@bors r+

@rust-bors
Copy link
Contributor

rust-bors bot commented Mar 25, 2026

📌 Commit c2383b5 has been approved by petrochenkov

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 25, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Mar 25, 2026
…l-fixes, r=petrochenkov

delegation: don't propagate synthetic params, remove lifetime hacks

Some small fixes after new delegation lowering was merged: remove lifetime hacks as now we get only early-bound lifetimes from generics, don't propagate synthetic generic params as now we know that they are synthetic. Fixes rust-lang#143498. Part of rust-lang#118212.

r? @petrochenkov
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Mar 25, 2026
…l-fixes, r=petrochenkov

delegation: don't propagate synthetic params, remove lifetime hacks

Some small fixes after new delegation lowering was merged: remove lifetime hacks as now we get only early-bound lifetimes from generics, don't propagate synthetic generic params as now we know that they are synthetic. Fixes rust-lang#143498. Part of rust-lang#118212.

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

Labels

F-fn_delegation `#![feature(fn_delegation)]` 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.

ICE: delegation: DefId::expect_local DefId(..) isn't local

4 participants