1
Fork 0

AST: Refactor type alias where clauses

This commit is contained in:
León Orell Valerian Liehr 2024-02-19 14:25:33 +01:00
parent 384d26fc7e
commit 2b8060578a
No known key found for this signature in database
GPG key ID: D17A07215F68E713
8 changed files with 73 additions and 85 deletions

View file

@ -601,11 +601,7 @@ impl<'a> TraitDef<'a> {
kind: ast::AssocItemKind::Type(Box::new(ast::TyAlias {
defaultness: ast::Defaultness::Final,
generics: Generics::default(),
where_clauses: (
ast::TyAliasWhereClause::default(),
ast::TyAliasWhereClause::default(),
),
where_predicates_split: 0,
where_clauses: ast::TyAliasWhereClauses::default(),
bounds: Vec::new(),
ty: Some(type_def.to_ty(cx, self.span, type_ident, generics)),
})),