Commit caa9e35e authored by Geoffry Song's avatar Geoffry Song

Suppress unused span! macro warning

parent 7485919f
......@@ -256,7 +256,7 @@ where T: Ord + fmt::Debug + fmt::Display,
// XXX: Annoying syntax :(
reduce_stmts.push(quote_stmt!(cx, match $span_stack_id.len() - $len { x => $span_stack_id.truncate(x) };).unwrap());
// Make the current_span available to the user by exposing it through a macro
reduce_stmts.push(quote_stmt!(cx, macro_rules! span {
reduce_stmts.push(quote_stmt!(cx, #[allow(unused_macros)] macro_rules! span {
() => { $span_id.unwrap() }
}).unwrap());
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment