about summary refs log tree commit diff
path: root/src/libregex_macros
diff options
context:
space:
mode:
Diffstat (limited to 'src/libregex_macros')
-rw-r--r--src/libregex_macros/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libregex_macros/lib.rs b/src/libregex_macros/lib.rs
index 8610621d30a..8aa9a2fc8fb 100644
--- a/src/libregex_macros/lib.rs
+++ b/src/libregex_macros/lib.rs
@@ -77,7 +77,7 @@ pub fn plugin_registrar(reg: &mut Registry) {
 /// strategy is identical and vm.rs has comments and will be easier to follow.
 #[allow(experimental)]
 fn native(cx: &mut ExtCtxt, sp: codemap::Span, tts: &[ast::TokenTree])
-          -> Box<MacResult> {
+          -> Box<MacResult+'static> {
     let regex = match parse(cx, tts) {
         Some(r) => r,
         // error is logged in 'parse' with cx.span_err