Skip to content
This repository was archived by the owner on Nov 21, 2018. It is now read-only.

Commit e27293a

Browse files
committed
rustup
1 parent 3ef82fc commit e27293a

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

html5ever-2015-05-15/Cargo.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,8 @@ time = "0"
1515
log = "0"
1616
phf = "0.7"
1717
phf_macros = "0.7"
18-
19-
[dependencies.string_cache]
20-
git = "https://github.com/servo/string-cache"
21-
[dependencies.string_cache_plugin]
22-
git = "https://github.com/servo/string-cache"
18+
string_cache = "0.1.12"
19+
string_cache_plugin = { version = "0.1.7", optional = true }
2320

2421
[dependencies.mac]
2522
git = "https://github.com/reem/rust-mac"

html5ever-2015-05-15/macros/src/match_token.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ fn parse(cx: &mut ExtCtxt, toks: &[ast::TokenTree]) -> Result<Match, FatalError>
216216

217217
let lhs_lo = parser.span.lo;
218218
let lhs = match parser.token {
219-
token::Underscore | token::Ident(..) => Pat(parser.parse_pat()),
219+
token::Underscore | token::Ident(..) => Pat(parser.parse_pat_panic()),
220220
token::Lt => {
221221
let mut tags = Vec::new();
222222
while parser.token != token::FatArrow {
@@ -428,7 +428,7 @@ pub fn expand(cx: &mut ExtCtxt, span: Span, toks: &[ast::TokenTree]) -> Box<MacR
428428
(None, Tags(_), _) => ext_bail!(cx, lhs.span, "the last arm cannot have tag patterns"),
429429
(None, _, Else) => ext_bail!(cx, rhs.span, "the last arm cannot use 'else'"),
430430
(None, Pat(p), Expr(e)) => match p.node {
431-
ast::PatWild(ast::PatWildSingle) | ast::PatIdent(..) => (p, e),
431+
ast::PatWild | ast::PatIdent(..) => (p, e),
432432
_ => ext_bail!(cx, lhs.span, "the last arm must have a wildcard or ident pattern"),
433433
},
434434
};

html5ever-2015-05-15/macros/src/named_entities.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use rustc_serialize::json;
1919
use rustc_serialize::json::Json;
2020
use rustc_serialize::Decodable;
2121
use syntax::codemap::Span;
22-
use syntax::ast::{Path, ExprLit, Lit_, TokenTree, TtToken};
22+
use syntax::ast::{Path, ExprLit, Lit_, TokenTree};
2323
use syntax::parse::token;
2424
use syntax::ext::base::{ExtCtxt, MacResult, MacEager};
2525
use syntax::ext::source_util::expand_file;
@@ -79,7 +79,7 @@ pub fn expand(cx: &mut ExtCtxt, sp: Span, tt: &[TokenTree]) -> Box<MacResult+'st
7979
// Argument to the macro should be a single literal string: a path to
8080
// entities.json, relative to the file containing the macro invocation.
8181
let json_filename = match tt {
82-
[TtToken(_, token::Literal(token::Lit::Str_(s), _))] => s.as_str().to_string(),
82+
[TokenTree::Token(_, token::Literal(token::Lit::Str_(s), _))] => s.as_str().to_string(),
8383
_ => ext_bail!(cx, sp, usage),
8484
};
8585

0 commit comments

Comments
 (0)