Rebase fallout

This commit is contained in:
Michael Goulet 2022-09-08 00:26:01 +00:00
parent 526511e86b
commit ec170bef0d

View File

@ -1351,17 +1351,14 @@ fn lower_ty_direct(&mut self, t: &Ty, itctx: &mut ImplTraitContext) -> hir::Ty<'
*in_trait,
itctx,
),
ImplTraitContext::TypeAliasesOpaqueTy => {
let mut nested_itctx = ImplTraitContext::TypeAliasesOpaqueTy;
self.lower_opaque_impl_trait(
span,
hir::OpaqueTyOrigin::TyAlias,
def_node_id,
bounds,
false,
nested_itctx,
)
}
ImplTraitContext::TypeAliasesOpaqueTy => self.lower_opaque_impl_trait(
span,
hir::OpaqueTyOrigin::TyAlias,
def_node_id,
bounds,
false,
&mut ImplTraitContext::TypeAliasesOpaqueTy,
),
ImplTraitContext::Universal => {
let span = t.span;
let ident = Ident::from_str_and_span(&pprust::ty_to_string(t), span);