summary refs log tree commit diff
path: root/src/libsyntax/print
diff options
context:
space:
mode:
authorDaniel Campbell <campbelldj@hotmail.com>2015-12-15 17:31:54 +1300
committerDaniel Campbell <campbelldj@hotmail.com>2015-12-15 17:41:03 +1300
commit2dcd791d46523e75da5c594033383e90c08d4ae3 (patch)
tree2ae5f9940e4d426f20de10d44ef13324a3885d50 /src/libsyntax/print
parent9267a3a22250ac225b94e6e150590307d764b2f9 (diff)
downloadrust-2dcd791d46523e75da5c594033383e90c08d4ae3.tar.gz
rust-2dcd791d46523e75da5c594033383e90c08d4ae3.zip
Generated code spans now point to callsite parameters (where applicable)
Diffstat (limited to 'src/libsyntax/print')
-rw-r--r--src/libsyntax/print/pprust.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs
index f7105951296..d3c570de248 100644
--- a/src/libsyntax/print/pprust.rs
+++ b/src/libsyntax/print/pprust.rs
@@ -296,7 +296,7 @@ pub fn token_to_string(tok: &Token) -> String {
             token::NtBlock(ref e)       => block_to_string(&**e),
             token::NtStmt(ref e)        => stmt_to_string(&**e),
             token::NtPat(ref e)         => pat_to_string(&**e),
-            token::NtIdent(ref e, _)    => ident_to_string(**e),
+            token::NtIdent(ref e, _)    => ident_to_string(e.node),
             token::NtTT(ref e)          => tt_to_string(&**e),
             token::NtArm(ref e)         => arm_to_string(&*e),
             token::NtImplItem(ref e)    => impl_item_to_string(&**e),