Skip to content

internal: Do not the same types twice in hir-ty lowering - #23196

Open
ChayimFriedman2 wants to merge 2 commits into
rust-lang:masterfrom
ChayimFriedman2:no-relower
Open

internal: Do not the same types twice in hir-ty lowering#23196
ChayimFriedman2 wants to merge 2 commits into
rust-lang:masterfrom
ChayimFriedman2:no-relower

Conversation

@ChayimFriedman2

Copy link
Copy Markdown
Contributor

Again for the intent of making AnonConst a tracked struct (as well as for perf).

We still have one problematic query: resolve_type_param_assoc_type_shorthand(). It is problematic and I need to think what to do with it.

And a drive-by fix in the second commit.

Best reviewed commit by commit. The commits are fully separate.

Again for the intent of making `AnonConst` a tracked struct (as well as for perf).

We still have one problematic query: `resolve_type_param_assoc_type_shorthand()`. It is problematic and I need to think what to do with it.
E.g.:
```rust
trait Trait
where
    Self::Assoc: OtherTrait,
{
    type Assoc;
}
```
Is equivalent to:
```rust
trait Trait {
    type Assoc: OtherTrait;
}
```

The code was copied from rustc and adapted.
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 19, 2026
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants