From 1b487a890695e7d6dfbfe5dcd7d4fa0e8ca8003f Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Wed, 27 Aug 2014 21:46:52 -0400 Subject: Implement generalized object and type parameter bounds (Fixes #16462) --- src/libfourcc/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libfourcc') diff --git a/src/libfourcc/lib.rs b/src/libfourcc/lib.rs index e4d61c47cc2..9e46da56a8e 100644 --- a/src/libfourcc/lib.rs +++ b/src/libfourcc/lib.rs @@ -72,8 +72,8 @@ pub fn plugin_registrar(reg: &mut Registry) { reg.register_macro("fourcc", expand_syntax_ext); } -pub fn expand_syntax_ext(cx: &mut ExtCtxt, sp: Span, tts: &[ast::TokenTree]) - -> Box { +pub fn expand_syntax_ext<'cx>(cx: &'cx mut ExtCtxt, sp: Span, tts: &[ast::TokenTree]) + -> Box { let (expr, endian) = parse_tts(cx, tts); let little = match endian { -- cgit 1.4.1-3-g733a5