@@ -1246,14 +1246,6 @@ impl TuplePat {
1246
1246
pub fn r_paren_token ( & self ) -> Option < SyntaxToken > { support:: token ( & self . syntax , T ! [ ')' ] ) }
1247
1247
}
1248
1248
#[ derive( Debug , Clone , PartialEq , Eq , Hash ) ]
1249
- pub struct MacroDef {
1250
- pub ( crate ) syntax : SyntaxNode ,
1251
- }
1252
- impl ast:: NameOwner for MacroDef { }
1253
- impl MacroDef {
1254
- pub fn token_tree ( & self ) -> Option < TokenTree > { support:: child ( & self . syntax ) }
1255
- }
1256
- #[ derive( Debug , Clone , PartialEq , Eq , Hash ) ]
1257
1249
pub struct MacroItems {
1258
1250
pub ( crate ) syntax : SyntaxNode ,
1259
1251
}
@@ -2735,17 +2727,6 @@ impl AstNode for TuplePat {
2735
2727
}
2736
2728
fn syntax ( & self ) -> & SyntaxNode { & self . syntax }
2737
2729
}
2738
- impl AstNode for MacroDef {
2739
- fn can_cast ( kind : SyntaxKind ) -> bool { kind == MACRO_DEF }
2740
- fn cast ( syntax : SyntaxNode ) -> Option < Self > {
2741
- if Self :: can_cast ( syntax. kind ( ) ) {
2742
- Some ( Self { syntax } )
2743
- } else {
2744
- None
2745
- }
2746
- }
2747
- fn syntax ( & self ) -> & SyntaxNode { & self . syntax }
2748
- }
2749
2730
impl AstNode for MacroItems {
2750
2731
fn can_cast ( kind : SyntaxKind ) -> bool { kind == MACRO_ITEMS }
2751
2732
fn cast ( syntax : SyntaxNode ) -> Option < Self > {
@@ -4081,11 +4062,6 @@ impl std::fmt::Display for TuplePat {
4081
4062
std:: fmt:: Display :: fmt ( self . syntax ( ) , f)
4082
4063
}
4083
4064
}
4084
- impl std:: fmt:: Display for MacroDef {
4085
- fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
4086
- std:: fmt:: Display :: fmt ( self . syntax ( ) , f)
4087
- }
4088
- }
4089
4065
impl std:: fmt:: Display for MacroItems {
4090
4066
fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
4091
4067
std:: fmt:: Display :: fmt ( self . syntax ( ) , f)
0 commit comments