@@ -1246,14 +1246,6 @@ impl TuplePat {
12461246 pub fn r_paren_token ( & self ) -> Option < SyntaxToken > { support:: token ( & self . syntax , T ! [ ')' ] ) }
12471247}
12481248#[ 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 ) ]
12571249pub struct MacroItems {
12581250 pub ( crate ) syntax : SyntaxNode ,
12591251}
@@ -2735,17 +2727,6 @@ impl AstNode for TuplePat {
27352727 }
27362728 fn syntax ( & self ) -> & SyntaxNode { & self . syntax }
27372729}
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- }
27492730impl AstNode for MacroItems {
27502731 fn can_cast ( kind : SyntaxKind ) -> bool { kind == MACRO_ITEMS }
27512732 fn cast ( syntax : SyntaxNode ) -> Option < Self > {
@@ -4081,11 +4062,6 @@ impl std::fmt::Display for TuplePat {
40814062 std:: fmt:: Display :: fmt ( self . syntax ( ) , f)
40824063 }
40834064}
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- }
40894065impl std:: fmt:: Display for MacroItems {
40904066 fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
40914067 std:: fmt:: Display :: fmt ( self . syntax ( ) , f)
0 commit comments