From e5ef55675bd1f715a885729d0d40ebd43112a5fb Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Thu, 13 Nov 2014 08:59:44 -0500 Subject: fix "warning: deprecated syntax, use `for` keyword now" --- src/libsyntax/ext/base.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libsyntax/ext') diff --git a/src/libsyntax/ext/base.rs b/src/libsyntax/ext/base.rs index 5401da8cd05..1e2d935af00 100644 --- a/src/libsyntax/ext/base.rs +++ b/src/libsyntax/ext/base.rs @@ -89,7 +89,7 @@ pub trait TTMacroExpander { } pub type MacroExpanderFn = - fn<'cx>(&'cx mut ExtCtxt, Span, &[ast::TokenTree]) -> Box; + for<'cx> fn(&'cx mut ExtCtxt, Span, &[ast::TokenTree]) -> Box; impl TTMacroExpander for MacroExpanderFn { fn expand<'cx>(&self, @@ -111,7 +111,7 @@ pub trait IdentMacroExpander { } pub type IdentMacroExpanderFn = - fn<'cx>(&'cx mut ExtCtxt, Span, ast::Ident, Vec) -> Box; + for<'cx> fn(&'cx mut ExtCtxt, Span, ast::Ident, Vec) -> Box; impl IdentMacroExpander for IdentMacroExpanderFn { fn expand<'cx>(&self, -- cgit 1.4.1-3-g733a5