mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Generate From impls for Any* nodes
This commit is contained in:
parent
62a7468d46
commit
200a01adc4
3 changed files with 634 additions and 19 deletions
|
@ -1127,21 +1127,3 @@ impl From<ast::AssocItem> for ast::AnyHasAttrs {
|
|||
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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue