Skip to content

Commit

Permalink
Auto merge of #120943 - petrochenkov:somehir3, r=oli-obk
Browse files Browse the repository at this point in the history
Create some minimal HIR for associated opaque types

`LocalDefId`s for opaque types in traits and impls are created after AST -> HIR lowering, so they don't have corresponding HIR and return their various properties through fed queries.

In this PR I also feed some core HIR-related queries for these `LocalDefId`s (which happen to be HIR owners).
As a result all `LocalDefId`s now have corresponding `HirId`s and HIR nodes, and "optional" methods like `opt_local_def_id_to_hir_id` and `opt_hir_node_by_def_id` can be removed.

Follow up to rust-lang/rust#120206.
  • Loading branch information
bors committed Mar 14, 2024
2 parents 0488214 + 7285311 commit 2bf8dae
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 2bf8dae

Please sign in to comment.