Skip to content

Commit 62dfd31

Browse files
committed
Auto merge of #7335 - ehuss:fix-plugin, r=alexcrichton
Fix test for changes in plugin API. Updates for rust-lang/rust#64041
2 parents cf03f71 + 803b9cd commit 62dfd31

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/testsuite/cross_compile.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ fn plugin_deps() {
205205
extern crate syntax;
206206
207207
use rustc_driver::plugin::Registry;
208-
use syntax::tokenstream::TokenTree;
208+
use syntax::tokenstream::TokenStream;
209209
use syntax::source_map::Span;
210210
use syntax::ast::*;
211211
use syntax::ext::base::{ExtCtxt, MacEager, MacResult};
@@ -215,7 +215,7 @@ fn plugin_deps() {
215215
reg.register_macro("bar", expand_bar);
216216
}
217217
218-
fn expand_bar(cx: &mut ExtCtxt, sp: Span, tts: &[TokenTree])
218+
fn expand_bar(cx: &mut ExtCtxt, sp: Span, tts: TokenStream)
219219
-> Box<MacResult + 'static> {
220220
MacEager::expr(cx.expr_lit(sp, LitKind::Int(1, LitIntType::Unsuffixed)))
221221
}
@@ -301,7 +301,7 @@ fn plugin_to_the_max() {
301301
extern crate baz;
302302
303303
use rustc_driver::plugin::Registry;
304-
use syntax::tokenstream::TokenTree;
304+
use syntax::tokenstream::TokenStream;
305305
use syntax::source_map::Span;
306306
use syntax::ast::*;
307307
use syntax::ext::base::{ExtCtxt, MacEager, MacResult};
@@ -312,7 +312,7 @@ fn plugin_to_the_max() {
312312
reg.register_macro("bar", expand_bar);
313313
}
314314
315-
fn expand_bar(cx: &mut ExtCtxt, sp: Span, tts: &[TokenTree])
315+
fn expand_bar(cx: &mut ExtCtxt, sp: Span, tts: TokenStream)
316316
-> Box<MacResult + 'static> {
317317
let bar = Ident::from_str("baz");
318318
let path = cx.path(sp, vec![bar.clone(), bar]);

0 commit comments

Comments
 (0)