From: bors Date: Wed, 27 Jun 2018 01:49:56 +0000 (+0000) Subject: Auto merge of #51773 - oli-obk:cleanup_impl_trait, r=nikomatsakis X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=d6e2239a0718b230444f7f218add58db5732817a;p=rust.git Auto merge of #51773 - oli-obk:cleanup_impl_trait, r=nikomatsakis Don't inspect the generated existential type items r? @nikomatsakis My debugging led me to the `hir::ItemExistential(..)` checks, which are entirely unnecessary because we never use the items directly. The issue was that items were iterated over in a random order (due to hashmaps), so if you checked the `ItemExistential` before the function that has the actual return `impl Trait`, you'd run into those ICEs you encountered. --- d6e2239a0718b230444f7f218add58db5732817a