Skip to content

Commit af5a6ad

Browse files
klutzyalexcrichton
authored andcommitted
---
yaml --- r: 120271 b: refs/heads/dist-snap c: 90d976e h: refs/heads/master i: 120269: 605ffdc 120267: 7777336 120263: cbc3ee2 120255: e662239 v: v3
1 parent 1758da7 commit af5a6ad

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 1813e5aa1a03b0596b8de7abd1af31edf5d6098f
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 4675a87c8bf4dacdd112c712503f362b7ded1857
9+
refs/heads/dist-snap: 90d976e8fce44d24acefad884d86be08a4a02212
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/libsyntax/print/pprust.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ impl<'a> State<'a> {
723723
try!(self.print_ident(item.ident));
724724
try!(self.cbox(indent_unit));
725725
try!(self.popen());
726-
try!(self.print_tts(&(tts.as_slice())));
726+
try!(self.print_tts(tts.as_slice()));
727727
try!(self.pclose());
728728
try!(self.end());
729729
}
@@ -839,7 +839,7 @@ impl<'a> State<'a> {
839839
/// expression arguments as expressions). It can be done! I think.
840840
pub fn print_tt(&mut self, tt: &ast::TokenTree) -> IoResult<()> {
841841
match *tt {
842-
ast::TTDelim(ref tts) => self.print_tts(&(tts.as_slice())),
842+
ast::TTDelim(ref tts) => self.print_tts(tts.as_slice()),
843843
ast::TTTok(_, ref tk) => {
844844
word(&mut self.s, parse::token::to_str(tk).as_slice())
845845
}
@@ -865,7 +865,7 @@ impl<'a> State<'a> {
865865
}
866866
}
867867

868-
pub fn print_tts(&mut self, tts: & &[ast::TokenTree]) -> IoResult<()> {
868+
pub fn print_tts(&mut self, tts: &[ast::TokenTree]) -> IoResult<()> {
869869
try!(self.ibox(0));
870870
for (i, tt) in tts.iter().enumerate() {
871871
if i != 0 {
@@ -1122,7 +1122,7 @@ impl<'a> State<'a> {
11221122
try!(self.print_path(pth, false));
11231123
try!(word(&mut self.s, "!"));
11241124
try!(self.popen());
1125-
try!(self.print_tts(&tts.as_slice()));
1125+
try!(self.print_tts(tts.as_slice()));
11261126
self.pclose()
11271127
}
11281128
}

0 commit comments

Comments
 (0)