@@ -1198,14 +1198,6 @@ impl TuplePat {
11981198 pub fn r_paren_token ( & self ) -> Option < SyntaxToken > { support:: token ( & self . syntax , T ! [ ')' ] ) }
11991199}
12001200#[ derive( Debug , Clone , PartialEq , Eq , Hash ) ]
1201- pub struct MacroDef {
1202- pub ( crate ) syntax : SyntaxNode ,
1203- }
1204- impl ast:: NameOwner for MacroDef { }
1205- impl MacroDef {
1206- pub fn token_tree ( & self ) -> Option < TokenTree > { support:: child ( & self . syntax ) }
1207- }
1208- #[ derive( Debug , Clone , PartialEq , Eq , Hash ) ]
12091201pub struct MacroItems {
12101202 pub ( crate ) syntax : SyntaxNode ,
12111203}
@@ -2677,17 +2669,6 @@ impl AstNode for TuplePat {
26772669 }
26782670 fn syntax ( & self ) -> & SyntaxNode { & self . syntax }
26792671}
2680- impl AstNode for MacroDef {
2681- fn can_cast ( kind : SyntaxKind ) -> bool { kind == MACRO_DEF }
2682- fn cast ( syntax : SyntaxNode ) -> Option < Self > {
2683- if Self :: can_cast ( syntax. kind ( ) ) {
2684- Some ( Self { syntax } )
2685- } else {
2686- None
2687- }
2688- }
2689- fn syntax ( & self ) -> & SyntaxNode { & self . syntax }
2690- }
26912672impl AstNode for MacroItems {
26922673 fn can_cast ( kind : SyntaxKind ) -> bool { kind == MACRO_ITEMS }
26932674 fn cast ( syntax : SyntaxNode ) -> Option < Self > {
@@ -4015,11 +3996,6 @@ impl std::fmt::Display for TuplePat {
40153996 std:: fmt:: Display :: fmt ( self . syntax ( ) , f)
40163997 }
40173998}
4018- impl std:: fmt:: Display for MacroDef {
4019- fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
4020- std:: fmt:: Display :: fmt ( self . syntax ( ) , f)
4021- }
4022- }
40233999impl std:: fmt:: Display for MacroItems {
40244000 fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
40254001 std:: fmt:: Display :: fmt ( self . syntax ( ) , f)
0 commit comments