]> git.lizzy.rs Git - rust.git/commit - src/librustc_llvm/build.rs
Rollup merge of #74516 - lcnr:min-specialization-ice, r=matthewjasper
authorManish Goregaokar <manishsmail@gmail.com>
Mon, 20 Jul 2020 02:12:37 +0000 (19:12 -0700)
committerGitHub <noreply@github.com>
Mon, 20 Jul 2020 02:12:37 +0000 (19:12 -0700)
commit55c4057f55bac2c0f3a21fc82b4e28c12f5d85d3
tree6573a846f530faf2b1a95f4cf2b72915037b186a
parent3981386b8e80e3ce35e70ffdac303c75d3771ea4
parent455e6140d81f48d99d43573382c67f804434a949
Rollup merge of #74516 - lcnr:min-specialization-ice, r=matthewjasper

do not try fetching the ancestors of errored trait impls

fixes #74483

While building the specialization graph, we use `tcx.all_impls` which discards impls with incorrect self types,
we do however call `trait_def.ancestors` with these impls which caused an ICE as they aren't part of the
specialization graph.