]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Auto merge of #87815 - BoxyUwU:cec-generics-of-ice, r=eddyb
authorbors <bors@rust-lang.org>
Sun, 8 Aug 2021 07:15:48 +0000 (07:15 +0000)
committerbors <bors@rust-lang.org>
Sun, 8 Aug 2021 07:15:48 +0000 (07:15 +0000)
commitc4c2986c499ee9440b7ae23bf5a62c6168e1ce17
tree1e2f367baacd72f1fecd2e17f9ed28240ddfa345
parent2d10c2a3302d53e10a4ad3ac581103faaae9eeb6
parent8ff2eccd80248030d66c7f4466935df85dfa36b0
Auto merge of #87815 - BoxyUwU:cec-generics-of-ice, r=eddyb

encode `generics_of` for fields and ty params

Fixes #87674
Fixes #87603

ICE was caused by calling `generics_of` on a `DefId` without any `generics_of` results. This was happening when we call `generics_of` on parent `DefId`s of an unevaluated const when we evaluate it.

r? `@lcnr`