1
Fork 0
rust/compiler/rustc_ty_utils/src
Takayuki Maeda 30a4215532
Rollup merge of #118573 - petrochenkov:pathdatakind, r=TaKO8Ki
rustc: Harmonize `DefKind` and `DefPathData`

Follow up to https://github.com/rust-lang/rust/pull/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.
2023-12-04 21:19:45 +09:00
..
abi.rs more targeted errors when extern types end up in places they should not 2023-12-03 08:11:15 +01:00
assoc.rs rustc: Harmonize DefKind and DefPathData 2023-12-03 16:24:56 +03:00
common_traits.rs Move expansion of query macros in rustc_middle to rustc_middle::query 2023-05-15 08:49:13 +02:00
consts.rs Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
errors.rs Re-use error code for duplicate error 2023-06-22 15:51:14 +00:00
implied_bounds.rs merge DefKind::Coroutine into DefKind::Closure 2023-11-26 21:05:08 +08:00
instance.rs Rename HandlerInner::delay_span_bug as HandlerInner::span_delayed_bug. 2023-12-02 09:01:19 +11:00
layout.rs Rename HandlerInner::delay_span_bug as HandlerInner::span_delayed_bug. 2023-12-02 09:01:19 +11:00
layout_sanity_check.rs fix failure to detect a too-big-type after adding padding 2023-10-27 18:07:53 +02:00
lib.rs Use rustc_fluent_macro::fluent_messages! directly. 2023-11-26 08:38:40 +11:00
needs_drop.rs review + add tests 2023-11-02 18:16:37 +01:00
opaque_types.rs Rename HandlerInner::delay_span_bug as HandlerInner::span_delayed_bug. 2023-12-02 09:01:19 +11:00
representability.rs Reduce exposure of some items. 2023-11-20 14:10:19 +11:00
sig_types.rs merge DefKind::Coroutine into DefKind::Closure 2023-11-26 21:05:08 +08:00
structural_match.rs Reduce exposure of some items. 2023-11-20 14:10:19 +11:00
ty.rs Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00