Generate From impls manually

This commit is contained in:
unexge 2022-09-26 19:29:28 +01:00
parent 3a8d84b4a3
commit 7e5e5177b6
3 changed files with 30 additions and 601 deletions

View file

@ -873,3 +873,33 @@ impl ast::MatchGuard {
support::child(&self.syntax)
}
}
impl From<ast::Item> for ast::AnyHasAttrs {
fn from(node: ast::Item) -> Self {
Self::new(node)
}
}
impl From<ast::AssocItem> for ast::AnyHasAttrs {
fn from(node: ast::AssocItem) -> Self {
Self::new(node)
}
}
impl From<ast::Variant> for ast::AnyHasAttrs {
fn from(node: ast::Variant) -> Self {
Self::new(node)
}
}
impl From<ast::RecordField> for ast::AnyHasAttrs {
fn from(node: ast::RecordField) -> Self {
Self::new(node)
}
}
impl From<ast::TupleField> for ast::AnyHasAttrs {
fn from(node: ast::TupleField) -> Self {
Self::new(node)
}
}