@@ -288,34 +288,6 @@ impl<F> TTMacroExpander for F
288288 }
289289}
290290
291- pub trait IdentMacroExpander {
292- fn expand < ' cx > ( & self ,
293- cx : & ' cx mut ExtCtxt < ' _ > ,
294- sp : Span ,
295- ident : ast:: Ident ,
296- token_tree : Vec < tokenstream:: TokenTree > )
297- -> Box < dyn MacResult +' cx > ;
298- }
299-
300- pub type IdentMacroExpanderFn =
301- for <' cx > fn ( & ' cx mut ExtCtxt < ' _ > , Span , ast:: Ident , Vec < tokenstream:: TokenTree > )
302- -> Box < dyn MacResult +' cx > ;
303-
304- impl < F > IdentMacroExpander for F
305- where F : for < ' cx > Fn ( & ' cx mut ExtCtxt < ' _ > , Span , ast:: Ident ,
306- Vec < tokenstream:: TokenTree > ) -> Box < dyn MacResult +' cx >
307- {
308- fn expand < ' cx > ( & self ,
309- cx : & ' cx mut ExtCtxt < ' _ > ,
310- sp : Span ,
311- ident : ast:: Ident ,
312- token_tree : Vec < tokenstream:: TokenTree > )
313- -> Box < dyn MacResult +' cx >
314- {
315- ( * self ) ( cx, sp, ident, token_tree)
316- }
317- }
318-
319291// Use a macro because forwarding to a simple function has type system issues
320292macro_rules! make_stmts_default {
321293 ( $me: expr) => {
@@ -658,14 +630,6 @@ pub enum SyntaxExtension {
658630 edition : Edition ,
659631 } ,
660632
661- /// A function-like syntax extension that has an extra ident before
662- /// the block.
663- IdentTT {
664- expander : Box < dyn IdentMacroExpander + sync:: Sync + sync:: Send > ,
665- span : Option < Span > ,
666- allow_internal_unstable : Option < Lrc < [ Symbol ] > > ,
667- } ,
668-
669633 /// An attribute-like procedural macro. TokenStream -> TokenStream.
670634 /// The input is the annotated item.
671635 /// Allows generating code to implement a Trait for a given struct
@@ -691,7 +655,6 @@ impl SyntaxExtension {
691655 match * self {
692656 SyntaxExtension :: DeclMacro { .. } |
693657 SyntaxExtension :: NormalTT { .. } |
694- SyntaxExtension :: IdentTT { .. } |
695658 SyntaxExtension :: ProcMacro { .. } =>
696659 MacroKind :: Bang ,
697660 SyntaxExtension :: NonMacroAttr { .. } |
@@ -725,7 +688,6 @@ impl SyntaxExtension {
725688 SyntaxExtension :: ProcMacroDerive ( .., edition) => edition,
726689 // Unstable legacy stuff
727690 SyntaxExtension :: NonMacroAttr { .. } |
728- SyntaxExtension :: IdentTT { .. } |
729691 SyntaxExtension :: MultiDecorator ( ..) |
730692 SyntaxExtension :: MultiModifier ( ..) |
731693 SyntaxExtension :: BuiltinDerive ( ..) => default_edition,
0 commit comments