diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-02-24 19:54:37 -0800 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-02-26 01:29:27 -0800 |
| commit | d346b51997a4a5d9f2e85aa41fc3113338b8a83b (patch) | |
| tree | 3d97d25a53409246fbbc69c46ee042abfee079cb /src/libsyntax/print | |
| parent | 194f29c20fb86fa163f35e9cd0540ae2b0d41b9d (diff) | |
| download | rust-d346b51997a4a5d9f2e85aa41fc3113338b8a83b.tar.gz rust-d346b51997a4a5d9f2e85aa41fc3113338b8a83b.zip | |
libsyntax: change token::to_str to take &Token
Diffstat (limited to 'src/libsyntax/print')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index b4773fe2f97..7cf297b324b 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -777,14 +777,14 @@ pub fn print_tt(s: @ps, tt: ast::token_tree) { match tt { ast::tt_delim(ref tts) => print_tts(s, *tts), ast::tt_tok(_, ref tk) => { - word(s.s, parse::token::to_str(s.intr, (*tk))); + word(s.s, parse::token::to_str(s.intr, tk)); } ast::tt_seq(_, ref tts, ref sep, zerok) => { word(s.s, ~"$("); for (*tts).each() |tt_elt| { print_tt(s, *tt_elt); } word(s.s, ~")"); match (*sep) { - Some(ref tk) => word(s.s, parse::token::to_str(s.intr, (*tk))), + Some(ref tk) => word(s.s, parse::token::to_str(s.intr, tk)), None => () } word(s.s, if zerok { ~"*" } else { ~"+" }); |
