@@ -205,7 +205,7 @@ fn plugin_deps() {
205
205
extern crate syntax;
206
206
207
207
use rustc_driver::plugin::Registry;
208
- use syntax::tokenstream::TokenTree ;
208
+ use syntax::tokenstream::TokenStream ;
209
209
use syntax::source_map::Span;
210
210
use syntax::ast::*;
211
211
use syntax::ext::base::{ExtCtxt, MacEager, MacResult};
@@ -215,7 +215,7 @@ fn plugin_deps() {
215
215
reg.register_macro("bar", expand_bar);
216
216
}
217
217
218
- fn expand_bar(cx: &mut ExtCtxt, sp: Span, tts: &[TokenTree] )
218
+ fn expand_bar(cx: &mut ExtCtxt, sp: Span, tts: TokenStream )
219
219
-> Box<MacResult + 'static> {
220
220
MacEager::expr(cx.expr_lit(sp, LitKind::Int(1, LitIntType::Unsuffixed)))
221
221
}
@@ -301,7 +301,7 @@ fn plugin_to_the_max() {
301
301
extern crate baz;
302
302
303
303
use rustc_driver::plugin::Registry;
304
- use syntax::tokenstream::TokenTree ;
304
+ use syntax::tokenstream::TokenStream ;
305
305
use syntax::source_map::Span;
306
306
use syntax::ast::*;
307
307
use syntax::ext::base::{ExtCtxt, MacEager, MacResult};
@@ -312,7 +312,7 @@ fn plugin_to_the_max() {
312
312
reg.register_macro("bar", expand_bar);
313
313
}
314
314
315
- fn expand_bar(cx: &mut ExtCtxt, sp: Span, tts: &[TokenTree] )
315
+ fn expand_bar(cx: &mut ExtCtxt, sp: Span, tts: TokenStream )
316
316
-> Box<MacResult + 'static> {
317
317
let bar = Ident::from_str("baz");
318
318
let path = cx.path(sp, vec![bar.clone(), bar]);
0 commit comments