Encode whether foreign opaques are TAITs or not
This commit is contained in:
@@ -654,7 +654,7 @@ impl<'tcx> WfPredicates<'tcx> {
|
||||
// All of the requirements on type parameters
|
||||
// have already been checked for `impl Trait` in
|
||||
// return position. We do need to check type-alias-impl-trait though.
|
||||
if ty::is_impl_trait_defn(self.tcx, def_id).is_none() {
|
||||
if self.tcx.is_type_alias_impl_trait(def_id) {
|
||||
let obligations = self.nominal_obligations(def_id, substs);
|
||||
self.out.extend(obligations);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user