@@ -1198,14 +1198,6 @@ impl TuplePat {
1198
1198
pub fn r_paren_token ( & self ) -> Option < SyntaxToken > { support:: token ( & self . syntax , T ! [ ')' ] ) }
1199
1199
}
1200
1200
#[ 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 ) ]
1209
1201
pub struct MacroItems {
1210
1202
pub ( crate ) syntax : SyntaxNode ,
1211
1203
}
@@ -2677,17 +2669,6 @@ impl AstNode for TuplePat {
2677
2669
}
2678
2670
fn syntax ( & self ) -> & SyntaxNode { & self . syntax }
2679
2671
}
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
- }
2691
2672
impl AstNode for MacroItems {
2692
2673
fn can_cast ( kind : SyntaxKind ) -> bool { kind == MACRO_ITEMS }
2693
2674
fn cast ( syntax : SyntaxNode ) -> Option < Self > {
@@ -4015,11 +3996,6 @@ impl std::fmt::Display for TuplePat {
4015
3996
std:: fmt:: Display :: fmt ( self . syntax ( ) , f)
4016
3997
}
4017
3998
}
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
- }
4023
3999
impl std:: fmt:: Display for MacroItems {
4024
4000
fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
4025
4001
std:: fmt:: Display :: fmt ( self . syntax ( ) , f)
0 commit comments