about summary refs log tree commit diff
path: root/src/test/auxiliary
diff options
context:
space:
mode:
authorOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>2015-11-06 14:52:02 +0100
committerOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>2015-11-06 14:52:02 +0100
commitfcc706790457e26bfa43377a0525bbc87cb0f3d1 (patch)
tree56f5e6790a271f11b1145798cc5c15e1a963cc4d /src/test/auxiliary
parent1be3f9f6023dd7583dc453ee2dff93e5c9ead441 (diff)
downloadrust-fcc706790457e26bfa43377a0525bbc87cb0f3d1.tar.gz
rust-fcc706790457e26bfa43377a0525bbc87cb0f3d1.zip
remove `Tt` prefix from TokenType variants
[breaking change]
Diffstat (limited to 'src/test/auxiliary')
-rw-r--r--src/test/auxiliary/procedural_mbe_matching.rs2
-rw-r--r--src/test/auxiliary/roman_numerals.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/test/auxiliary/procedural_mbe_matching.rs b/src/test/auxiliary/procedural_mbe_matching.rs
index 296d1e431f4..a92361b8106 100644
--- a/src/test/auxiliary/procedural_mbe_matching.rs
+++ b/src/test/auxiliary/procedural_mbe_matching.rs
@@ -18,7 +18,7 @@ extern crate rustc;
 
 use syntax::codemap::Span;
 use syntax::parse::token::{self, str_to_ident, NtExpr, NtPat};
-use syntax::ast::{TokenTree, TtToken, Pat};
+use syntax::ast::{TokenTree, Pat};
 use syntax::ext::base::{ExtCtxt, MacResult, DummyResult, MacEager};
 use syntax::ext::build::AstBuilder;
 use syntax::ext::tt::macro_parser::{MatchedSeq, MatchedNonterminal};
diff --git a/src/test/auxiliary/roman_numerals.rs b/src/test/auxiliary/roman_numerals.rs
index e6f375354aa..3abc6f4a9f5 100644
--- a/src/test/auxiliary/roman_numerals.rs
+++ b/src/test/auxiliary/roman_numerals.rs
@@ -18,7 +18,7 @@ extern crate syntax;
 extern crate rustc;
 
 use syntax::codemap::Span;
-use syntax::ast::{TokenTree, TtToken};
+use syntax::ast::TokenTree;
 use syntax::parse::token;
 use syntax::ext::base::{ExtCtxt, MacResult, DummyResult, MacEager};
 use syntax::ext::build::AstBuilder;  // trait for expr_usize
@@ -40,7 +40,7 @@ fn expand_rn(cx: &mut ExtCtxt, sp: Span, args: &[TokenTree])
         ("I",    1)];
 
     let text = match args {
-        [TtToken(_, token::Ident(s, _))] => s.to_string(),
+        [TokenTree::Token(_, token::Ident(s, _))] => s.to_string(),
         _ => {
             cx.span_err(sp, "argument should be a single identifier");
             return DummyResult::any(sp);