1
Fork 0

Remove OpaqueTyOrigin::Binding

This commit is contained in:
Santiago Pastorino 2021-07-14 12:31:58 -03:00
parent eb0b95b55a
commit 66c9cd9e66
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF
33 changed files with 84 additions and 734 deletions

View file

@ -402,9 +402,7 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
}
// These opaque type inherit all lifetime parameters from their
// parent, so we have to check them all.
hir::OpaqueTyOrigin::Binding
| hir::OpaqueTyOrigin::TyAlias
| hir::OpaqueTyOrigin::Misc => 0,
hir::OpaqueTyOrigin::TyAlias | hir::OpaqueTyOrigin::Misc => 0,
};
let span = tcx.def_span(def_id);