Skip to content

Commit 7aaea76

Browse files
committed
---
yaml --- r: 123445 b: refs/heads/auto c: ae9a92b h: refs/heads/master i: 123443: 3e9e2ca v: v3
1 parent d20ebe5 commit 7aaea76

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: b0303b3c22eeb602ed8d51a267f52306aadc9322
16+
refs/heads/auto: ae9a92bd4ef25b8aba0ef06e7ad26319691e9e5a
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/libsyntax/ast.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub fn P<T: 'static>(value: T) -> P<T> {
4141
/// table) and a SyntaxContext to track renaming and
4242
/// macro expansion per Flatt et al., "Macros
4343
/// That Work Together"
44-
#[deriving(Clone, Hash, PartialOrd, Eq, Ord, Show)]
44+
#[deriving(Clone, Hash, PartialOrd, Eq, Ord)]
4545
pub struct Ident {
4646
pub name: Name,
4747
pub ctxt: SyntaxContext
@@ -52,6 +52,12 @@ impl Ident {
5252
pub fn new(name: Name) -> Ident { Ident {name: name, ctxt: EMPTY_CTXT}}
5353
}
5454

55+
impl Show for Ident {
56+
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
57+
write!(f, "\"{}\"#{}", token::get_ident(*self).get(), self.ctxt)
58+
}
59+
}
60+
5561
impl PartialEq for Ident {
5662
fn eq(&self, other: &Ident) -> bool {
5763
if self.ctxt == other.ctxt {

branches/auto/src/libsyntax/parse/lexer/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ impl<'a> Reader for TtReader<'a> {
9090
}
9191
fn next_token(&mut self) -> TokenAndSpan {
9292
let r = tt_next_token(self);
93-
debug!("TtReader: r={:?}", r);
93+
debug!("TtReader: r={}", r);
9494
r
9595
}
9696
fn fatal(&self, m: &str) -> ! {

0 commit comments

Comments
 (0)