mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
4dbafc340b
delegation: fix def path hash collision, add per parent disambiguators This PR addresses the following delegation issues: - It fixes rust-lang/rust#153410 when generating new `DefId`s for generic parameters by ~saving `DisambiguatorState`s from resolve stage and using them at AST -> HIR lowering~ introducing per owner disambiguators and transferring them to AST -> HIR lowering stage - ~Next it fixes the ICE which is connected to using `DUMMY_SP` in delegation code, which was found during previous fix~ - ~Finally, after those fixes the rust-lang/rust#143498 is also fixed, only bugs with propagating synthetic generic params are left.~ Fixes rust-lang/rust#153410. Part of rust-lang/rust#118212. r? @petrochenkov