Skip to content

Commit 7362916

Browse files
committed
---
yaml --- r: 123700 b: refs/heads/try c: ae9a92b h: refs/heads/master v: v3
1 parent fcb28cf commit 7362916

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
@@ -2,7 +2,7 @@
22
refs/heads/master: da4e4e4e0a7778a85748aa4a303b13f603e96b4b
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 8ddd286ea4ba4384a0dc9eae393ed515460a986e
5-
refs/heads/try: b0303b3c22eeb602ed8d51a267f52306aadc9322
5+
refs/heads/try: ae9a92bd4ef25b8aba0ef06e7ad26319691e9e5a
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/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/try/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)