Skip to content

Commit

Permalink
Rollup merge of #118573 - petrochenkov:pathdatakind, r=TaKO8Ki
Browse files Browse the repository at this point in the history
rustc: Harmonize `DefKind` and `DefPathData`

Follow up to rust-lang/rust#118188.

`DefPathData::(ClosureExpr,ImplTrait)` are renamed to match `DefKind::(Closure,OpaqueTy)`.

`DefPathData::ImplTraitAssocTy` is replaced with `DefPathData::TypeNS(kw::Empty)` because both correspond to `DefKind::AssocTy`.
It's possible that introducing `(DefKind,DefPathData)::AssocOpaqueTy` instead could be a better solution, but that would be a much more invasive change.

Const generic parameters introduced for effects are moved from `DefPathData::TypeNS` to `DefPathData::ValueNS`, because constants are values.

`DefPathData` is no longer passed to `create_def` functions to avoid redundancy.
  • Loading branch information
TaKO8Ki authored Dec 4, 2023
2 parents a43afbe + 387fe55 commit 433fe14
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 433fe14

Please sign in to comment.