Skip to content

Adapt to upstream rustc changes to AliasTyKind::def_id#1262

Closed
mvanbem-goog wants to merge 1 commit into
mainfrom
alias-ty-def-id
Closed

Adapt to upstream rustc changes to AliasTyKind::def_id#1262
mvanbem-goog wants to merge 1 commit into
mainfrom
alias-ty-def-id

Conversation

@mvanbem-goog

@mvanbem-goog mvanbem-goog commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

rust-lang/rust#158013

It looks like the intent of these changes is that AliasTyKind will eventually gain variants that don't have a DefId. We expect precisely one alias kind at this call site, so unpack that for its DefId.

rust-lang/rust#158013

It looks like the intent of these changes is that `AliasTyKind` will eventually gain variants that don't have a `DefId`. I'm not sure what we are going to do with that, but for now we can match on the variants, all of which do have a `DefId`.
@mvanbem-goog mvanbem-goog deleted the alias-ty-def-id branch June 24, 2026 18:50
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 these issues.

1 participant