Special case type aliases from impl trait in const/static types
This commit is contained in:
parent
3abdb08351
commit
cdbb0ff8ca
5 changed files with 13 additions and 6 deletions
|
@ -342,7 +342,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
|
|||
ty,
|
||||
ImplTraitContext::OtherOpaqueTy {
|
||||
capturable_lifetimes: &mut FxHashSet::default(),
|
||||
origin: hir::OpaqueTyOrigin::Misc,
|
||||
origin: hir::OpaqueTyOrigin::TyAlias,
|
||||
},
|
||||
);
|
||||
let generics = self.lower_generics(gen, ImplTraitContext::disallowed());
|
||||
|
@ -918,7 +918,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
|
|||
ty,
|
||||
ImplTraitContext::OtherOpaqueTy {
|
||||
capturable_lifetimes: &mut FxHashSet::default(),
|
||||
origin: hir::OpaqueTyOrigin::Misc,
|
||||
origin: hir::OpaqueTyOrigin::TyAlias,
|
||||
},
|
||||
);
|
||||
hir::ImplItemKind::TyAlias(ty)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue