From d8b1fa0ae0c27e54d3539190683c01e194d36fbd Mon Sep 17 00:00:00 2001 From: Brendan Zabarauskas Date: Mon, 27 Oct 2014 19:22:52 +1100 Subject: Use PascalCase for token variants --- src/test/auxiliary/roman_numerals.rs | 4 ++-- src/test/compile-fail/removed-syntax-record.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/test') diff --git a/src/test/auxiliary/roman_numerals.rs b/src/test/auxiliary/roman_numerals.rs index 40ed3a35ddf..519f32fc248 100644 --- a/src/test/auxiliary/roman_numerals.rs +++ b/src/test/auxiliary/roman_numerals.rs @@ -17,7 +17,7 @@ extern crate syntax; extern crate rustc; use syntax::codemap::Span; -use syntax::parse::token::{IDENT, get_ident}; +use syntax::parse::token; use syntax::ast::{TokenTree, TtToken}; use syntax::ext::base::{ExtCtxt, MacResult, DummyResult, MacExpr}; use syntax::ext::build::AstBuilder; // trait for expr_uint @@ -39,7 +39,7 @@ fn expand_rn(cx: &mut ExtCtxt, sp: Span, args: &[TokenTree]) ("I", 1)]; let text = match args { - [TtToken(_, IDENT(s, _))] => get_ident(s).to_string(), + [TtToken(_, token::Ident(s, _))] => token::get_ident(s).to_string(), _ => { cx.span_err(sp, "argument should be a single identifier"); return DummyResult::any(sp); diff --git a/src/test/compile-fail/removed-syntax-record.rs b/src/test/compile-fail/removed-syntax-record.rs index 38c5122c2c3..b3fa04d8025 100644 --- a/src/test/compile-fail/removed-syntax-record.rs +++ b/src/test/compile-fail/removed-syntax-record.rs @@ -8,4 +8,4 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -type t = { f: () }; //~ ERROR expected type, found token LBRACE +type t = { f: () }; //~ ERROR expected type, found token LBrace -- cgit 1.4.1-3-g733a5