about summary refs log tree commit diff
path: root/src/libsyntax/print
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-12-16 12:16:43 +0000
committerbors <bors@rust-lang.org>2015-12-16 12:16:43 +0000
commit785a8a6681963ff389b5902e7d6bd30006fafe0a (patch)
tree60b51ca2c9f0efd343f24eb564f90b5697a74c87 /src/libsyntax/print
parentce7bc51933e2facb4eca029ac17b398f372f5b41 (diff)
parentf0361a05028ec9bf8ef256432c212f1d7f3bc115 (diff)
downloadrust-785a8a6681963ff389b5902e7d6bd30006fafe0a.tar.gz
rust-785a8a6681963ff389b5902e7d6bd30006fafe0a.zip
Auto merge of #30410 - Manishearth:rollup, r=Manishearth
- Successful merges: #30320, #30368, #30372, #30376, #30388, #30392
- Failed merges: #30354, #30389
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 0be62bc0a7f..4e2289cb7f4 100644
--- a/src/libsyntax/print/pprust.rs
+++ b/src/libsyntax/print/pprust.rs
@@ -295,7 +295,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),