1
Fork 0
rust/compiler/rustc_symbol_mangling/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
..
typeid rustc: Harmonize DefKind and DefPathData 2023-12-03 16:24:56 +03:00
errors.rs Remove rustc_symbol_mangling/messages.ftl. 2023-10-17 16:15:36 +11:00
legacy.rs Remove -Zperf-stats. 2023-11-13 09:45:20 +11:00
lib.rs merge DefKind::Coroutine into DefKind::Closure 2023-11-26 21:05:08 +08:00
test.rs refactor(rustc_middle): Substs -> GenericArg 2023-07-14 13:27:35 +01:00
typeid.rs CFI: Fix SIGILL reached via trait objects 2023-05-09 20:04:19 +00:00
v0.rs rustc: Harmonize DefKind and DefPathData 2023-12-03 16:24:56 +03:00