10BC0 fix: Fix opaque generics by ChayimFriedman2 · Pull Request #20523 · rust-lang/rust-analyzer · GitHub
[go: up one dir, main page]

Skip to content

Conversation

ChayimFriedman2
Copy link
Contributor

The parent generics were incorrectly not considered for TAIT.

I'm not convinced we should follow rustc here, also there are items (opaques) with more than 1 parent (opaque -> fn/type alias -> impl/trait) and I'm not sure we properly account for that in all places, but for now I left it as-is.

Also fix a bug where lifetimes' indices were incorrect when there is a self param (they started from 0 instead of 1).

That was the reason for #20443 (comment).

The parent generics were incorrectly not considered for TAIT.

I'm not convinced we should follow rustc here, also there are items (opaques) with more than 1 parent (opaque -> fn/type alias -> impl/trait) and I'm not sure we properly account for that in all places, but for now I left it as-is.

Also fix a bug where lifetimes' indices were incorrect when there is a self param (they started from 0 instead of 1).
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 24, 2025
@ChayimFriedman2 ChayimFriedman2 changed the title Fix opaque generics fix: Fix opaque generics Aug 24, 2025
@ShoyuVanilla ShoyuVanilla added this pull request to the merge queue Aug 24, 2025
Merged via the queue into rust-lang:master with commit db7b3b1 Aug 24, 2025
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 24, 2025
@ChayimFriedman2 ChayimFriedman2 deleted the opaque-generics branch August 24, 2025 07:21
@lnicola
Copy link
Member
lnicola commented Aug 26, 2025

changelog fixup #20329

@ChayimFriedman2
Copy link
Contributor Author
ChayimFriedman2 commented Aug 26, 2025

We gonna have a lot of fixups to that PR...

@lnicola
Copy link
Member
lnicola commented Aug 26, 2025

Yeah, sorry about the noise, but it's probably better (both grouping for readability, since individual PR descriptions aren't going to be too interesting on their own, and making it more impressive) for the changelog.

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 th 3C3D ese issues.

4 participants

0