@@ -285,34 +285,6 @@ impl<F> TTMacroExpander for F
285285 }
286286}
287287
288- pub trait IdentMacroExpander {
289- fn expand < ' cx > ( & self ,
290- cx : & ' cx mut ExtCtxt < ' _ > ,
291- sp : Span ,
292- ident : ast:: Ident ,
293- token_tree : Vec < tokenstream:: TokenTree > )
294- -> Box < dyn MacResult +' cx > ;
295- }
296-
297- pub type IdentMacroExpanderFn =
298- for <' cx > fn ( & ' cx mut ExtCtxt < ' _ > , Span , ast:: Ident , Vec < tokenstream:: TokenTree > )
299- -> Box < dyn MacResult +' cx > ;
300-
301- impl < F > IdentMacroExpander for F
302- where F : for < ' cx > Fn ( & ' cx mut ExtCtxt < ' _ > , Span , ast:: Ident ,
303- Vec < tokenstream:: TokenTree > ) -> Box < dyn MacResult +' cx >
304- {
305- fn expand < ' cx > ( & self ,
306- cx : & ' cx mut ExtCtxt < ' _ > ,
307- sp : Span ,
308- ident : ast:: Ident ,
309- token_tree : Vec < tokenstream:: TokenTree > )
310- -> Box < dyn MacResult +' cx >
311- {
312- ( * self ) ( cx, sp, ident, token_tree)
313- }
314- }
315-
316288// Use a macro because forwarding to a simple function has type system issues
317289macro_rules! make_stmts_default {
318290 ( $me: expr) => {
@@ -655,14 +627,6 @@ pub enum SyntaxExtension {
655627 edition : Edition ,
656628 } ,
657629
658- /// A function-like syntax extension that has an extra ident before
659- /// the block.
660- IdentTT {
661- expander : Box < dyn IdentMacroExpander + sync:: Sync + sync:: Send > ,
662- span : Option < Span > ,
663- allow_internal_unstable : Option < Lrc < [ Symbol ] > > ,
664- } ,
665-
666630 /// An attribute-like procedural macro. TokenStream -> TokenStream.
667631 /// The input is the annotated item.
668632 /// Allows generating code to implement a Trait for a given struct
@@ -688,7 +652,6 @@ impl SyntaxExtension {
688652 match * self {
689653 SyntaxExtension :: DeclMacro { .. } |
690654 SyntaxExtension :: NormalTT { .. } |
691- SyntaxExtension :: IdentTT { .. } |
692655 SyntaxExtension :: ProcMacro { .. } =>
693656 MacroKind :: Bang ,
694657 SyntaxExtension :: NonMacroAttr { .. } |
@@ -722,7 +685,6 @@ impl SyntaxExtension {
722685 SyntaxExtension :: ProcMacroDerive ( .., edition) => edition,
723686 // Unstable legacy stuff
724687 SyntaxExtension :: NonMacroAttr { .. } |
725- SyntaxExtension :: IdentTT { .. } |
726688 SyntaxExtension :: MultiDecorator ( ..) |
727689 SyntaxExtension :: MultiModifier ( ..) |
728690 SyntaxExtension :: BuiltinDerive ( ..) => default_edition,
0 commit comments