mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-18 17:40:29 +00:00
⬆️ rust-analyzer
This commit is contained in:
parent
3a57388d13
commit
4f55ebbd4f
122 changed files with 2885 additions and 1093 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue