Skip to content

Commit d1793d1

Browse files
committed
---
yaml --- r: 173010 b: refs/heads/batch c: 6cfbcca h: refs/heads/master v: v3
1 parent 27aace8 commit d1793d1

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2929
refs/heads/issue-18208-method-dispatch-2: 9e1eae4fb9b6527315b4441cf8a0f5ca911d1671
3030
refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
32-
refs/heads/batch: d397a3e6545b7ac22c9bce383465e0b3c595587f
32+
refs/heads/batch: 6cfbcca41e259ddf93fb86a54e8d5f5bbcd3e6f1
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 44a287e6eb22ec3c2a687fc156813577464017f7
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928

branches/batch/src/grammar/verify.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(globs, plugin)]
11+
#![feature(plugin)]
1212

1313
extern crate syntax;
1414
extern crate rustc;
@@ -114,7 +114,7 @@ fn parse_token_list(file: &str) -> HashMap<String, token::Token> {
114114
res.insert(num.to_string(), tok);
115115
}
116116

117-
debug!("Token map: {}", res);
117+
debug!("Token map: {:?}", res);
118118
res
119119
}
120120

@@ -162,7 +162,7 @@ fn fixchar(mut lit: &str) -> ast::Name {
162162
parse::token::intern(lit.slice(1, lit.len() - 1))
163163
}
164164

165-
fn count(lit: &str) -> uint {
165+
fn count(lit: &str) -> usize {
166166
lit.chars().take_while(|c| *c == '#').count()
167167
}
168168

@@ -177,12 +177,12 @@ fn parse_antlr_token(s: &str, tokens: &HashMap<String, token::Token>) -> TokenAn
177177
let toknum = m.name("toknum").unwrap_or("");
178178
let content = m.name("content").unwrap_or("");
179179

180-
let proto_tok = tokens.get(toknum).expect(format!("didn't find token {} in the map",
180+
let proto_tok = tokens.get(toknum).expect(format!("didn't find token {:?} in the map",
181181
toknum).as_slice());
182182

183183
let nm = parse::token::intern(content);
184184

185-
debug!("What we got: content (`{}`), proto: {}", content, proto_tok);
185+
debug!("What we got: content (`{}`), proto: {:?}", content, proto_tok);
186186

187187
let real_tok = match *proto_tok {
188188
token::BinOp(..) => token::BinOp(str_to_binop(content)),
@@ -266,7 +266,7 @@ fn main() {
266266
continue
267267
}
268268

269-
assert!(rustc_tok.sp == antlr_tok.sp, "{} and {} have different spans", rustc_tok,
269+
assert!(rustc_tok.sp == antlr_tok.sp, "{:?} and {:?} have different spans", rustc_tok,
270270
antlr_tok);
271271

272272
macro_rules! matches {
@@ -277,12 +277,12 @@ fn main() {
277277
if !tok_cmp(&rustc_tok.tok, &antlr_tok.tok) {
278278
// FIXME #15677: needs more robust escaping in
279279
// antlr
280-
warn!("Different names for {} and {}", rustc_tok, antlr_tok);
280+
warn!("Different names for {:?} and {:?}", rustc_tok, antlr_tok);
281281
}
282282
}
283-
_ => panic!("{} is not {}", antlr_tok, rustc_tok)
283+
_ => panic!("{:?} is not {:?}", antlr_tok, rustc_tok)
284284
},)*
285-
ref c => assert!(c == &antlr_tok.tok, "{} is not {}", rustc_tok, antlr_tok)
285+
ref c => assert!(c == &antlr_tok.tok, "{:?} is not {:?}", rustc_tok, antlr_tok)
286286
}
287287
)
288288
}

0 commit comments

Comments
 (0)