Skip to content

Commit 29f09b0

Browse files
author
bors-servo
committed
Auto merge of #119 - servo:rustup, r=frewsxcv
Rustup to rustc 1.6.0-nightly (5b4986fa5 2015-11-08) <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/string-cache/119) <!-- Reviewable:end -->
2 parents a0e44ef + 2aaa61f commit 29f09b0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

plugin/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "string_cache_plugin"
4-
version = "0.1.9"
4+
version = "0.1.10"
55
authors = [ "The Servo Project Developers" ]
66
description = "A string interning library for Rust, developed as part of the Servo project − compiler plugin."
77
license = "MIT / Apache-2.0"

plugin/src/atom/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
use syntax::ptr::P;
1111
use syntax::codemap::Span;
12-
use syntax::ast::{TokenTree, TtToken};
12+
use syntax::ast::TokenTree;
1313
use syntax::ast;
1414
use syntax::ext::base::{ExtCtxt, MacResult, MacEager};
1515
use syntax::parse::token::{InternedString, Ident, Literal, Lit};
@@ -21,8 +21,8 @@ use std::ascii::AsciiExt;
2121

2222
fn atom_tok_to_str(t: &TokenTree) -> Option<InternedString> {
2323
Some(match *t {
24-
TtToken(_, Ident(s, _)) => s.name.as_str(),
25-
TtToken(_, Literal(Lit::Str_(s), _)) => s.as_str(),
24+
TokenTree::Token(_, Ident(s, _)) => s.name.as_str(),
25+
TokenTree::Token(_, Literal(Lit::Str_(s), _)) => s.as_str(),
2626
_ => return None,
2727
})
2828
}

0 commit comments

Comments
 (0)