Change to Elaborate::None inside compute_projection

This commit is contained in:
scalexm 2017-08-25 03:57:44 +02:00
parent 373e909d07
commit 68fd322a95

View File

@ -198,7 +198,7 @@ impl<'a, 'gcx, 'tcx> WfPredicates<'a, 'gcx, 'tcx> {
// WF and (b) the trait-ref holds. (It may also be
// normalizable and be WF that way.)
let trait_ref = data.trait_ref(self.infcx.tcx);
self.compute_trait_ref(&trait_ref, Elaborate::All);
self.compute_trait_ref(&trait_ref, Elaborate::None);
if !data.has_escaping_regions() {
let predicate = trait_ref.to_predicate();