1
Fork 0
rust/compiler/rustc_hir/src
Vadim Petrochenkov 17e799c270 rustc: Harmonize DefKind and DefPathData
`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` 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-03 16:24:56 +03:00
..
arena.rs Remove unused arena kinds in rustc_hir and rustc_middle. 2023-11-20 15:05:26 +11:00
def.rs rustc: Harmonize DefKind and DefPathData 2023-12-03 16:24:56 +03:00
def_path_hash_map.rs Use on-disk-hash-table format for DefPathHashMap in hir::definitions. 2021-09-14 13:54:41 +02:00
definitions.rs rustc: Harmonize DefKind and DefPathData 2023-12-03 16:24:56 +03:00
diagnostic_items.rs Introduce get_diagnostic_name 2021-10-06 08:40:28 -05:00
hir.rs Rollup merge of #118157 - Nadrieril:never_pat-feature-gate, r=compiler-errors 2023-11-29 12:34:47 +01:00
hir_id.rs Replace no_ord_impl with orderable. 2023-11-22 18:38:17 +11:00
intravisit.rs Add never_patterns feature gate 2023-11-29 03:58:29 +01:00
lang_items.rs Wrap a long line. 2023-11-21 15:34:41 +11:00
lib.rs Remove unused feature. 2023-11-20 16:20:45 +11:00
pat_util.rs Perform match checking on THIR. 2023-04-03 15:59:21 +00:00
stable_hash_impls.rs Only compute the crate hash when necessary. 2023-03-08 09:30:22 +11:00
target.rs Don't store lazyness in DefKind 2023-09-26 02:53:59 +00:00
tests.rs Replace two create_default_session_if_not_set_then uses. 2023-11-02 19:35:04 +11:00
weak_lang_items.rs Rewrite implementation of #[alloc_error_handler] 2022-10-31 16:32:57 +00:00