Track nightly compiler

This commit is contained in:
Tim Kuehn
2016-10-28 16:13:59 -07:00
parent 3506397150
commit 67ad2b90be

View File

@@ -21,7 +21,7 @@ use syntax::tokenstream::TokenTree;
use syntax::util::small_vector::SmallVector;
fn snake_to_camel(cx: &mut ExtCtxt, sp: Span, tts: &[TokenTree]) -> Box<MacResult + 'static> {
let mut parser = parse::new_parser_from_tts(cx.parse_sess(), cx.cfg(), tts.into());
let mut parser = parse::new_parser_from_tts(cx.parse_sess(), cx.cfg().clone(), tts.into());
// The `expand_expr` method is called so that any macro calls in the
// parsed expression are expanded.
@@ -69,7 +69,7 @@ fn snake_to_camel(cx: &mut ExtCtxt, sp: Span, tts: &[TokenTree]) -> Box<MacResul
}
fn impl_snake_to_camel(cx: &mut ExtCtxt, sp: Span, tts: &[TokenTree]) -> Box<MacResult + 'static> {
let mut parser = parse::new_parser_from_tts(cx.parse_sess(), cx.cfg(), tts.into());
let mut parser = parse::new_parser_from_tts(cx.parse_sess(), cx.cfg().clone(), tts.into());
// The `expand_expr` method is called so that any macro calls in the
// parsed expression are expanded.
@@ -91,7 +91,7 @@ fn impl_snake_to_camel(cx: &mut ExtCtxt, sp: Span, tts: &[TokenTree]) -> Box<Mac
}
fn ty_snake_to_camel(cx: &mut ExtCtxt, sp: Span, tts: &[TokenTree]) -> Box<MacResult + 'static> {
let mut parser = parse::new_parser_from_tts(cx.parse_sess(), cx.cfg(), tts.into());
let mut parser = parse::new_parser_from_tts(cx.parse_sess(), cx.cfg().clone(), tts.into());
// The `expand_expr` method is called so that any macro calls in the
// parsed expression are expanded.