Remove OpaqueTyOrigin::Misc, use TyAlias instead

This commit is contained in:
Santiago Pastorino 2021-07-14 18:23:36 -03:00
parent d98384595f
commit 000b945cea
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF
5 changed files with 6 additions and 9 deletions

View file

@ -402,7 +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::TyAlias | hir::OpaqueTyOrigin::Misc => 0,
hir::OpaqueTyOrigin::TyAlias => 0,
};
let span = tcx.def_span(def_id);
@ -994,7 +994,7 @@ impl<'a, 'tcx> Instantiator<'a, 'tcx> {
may_define_opaque_type(tcx, self.parent_def_id, opaque_hir_id),
origin,
),
_ => (def_scope_default(), hir::OpaqueTyOrigin::Misc),
_ => (def_scope_default(), hir::OpaqueTyOrigin::TyAlias),
};
if in_definition_scope {
let opaque_type_key =