From 7b42e3851c320d5a5f0f27c2b5649efafd8e5057 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 16 Jun 2014 22:14:21 -0700 Subject: [PATCH] rustdoc: Remove outdated syntax Fixing some of rustdoc's rendering to use newer syntaxes rather than older syntaxes. --- src/librustdoc/html/format.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/librustdoc/html/format.rs b/src/librustdoc/html/format.rs index 29d1be88824..0ba776e903a 100644 --- a/src/librustdoc/html/format.rs +++ b/src/librustdoc/html/format.rs @@ -316,11 +316,8 @@ fn tybounds(w: &mut fmt::Formatter, typarams: &Option >) -> fmt::Result { match *typarams { Some(ref params) => { - try!(write!(w, ":")); - for (i, param) in params.iter().enumerate() { - if i > 0 { - try!(write!(w, " + ")); - } + for param in params.iter() { + try!(write!(w, " + ")); try!(write!(w, "{}", *param)); } Ok(()) @@ -432,8 +429,8 @@ impl fmt::Show for clean::Type { format!("[{}, ..{}]", **t, *s).as_slice()) } clean::Bottom => f.write("!".as_bytes()), - clean::Unique(ref t) => write!(f, "~{}", **t), - clean::Managed(ref t) => write!(f, "@{}", **t), + clean::Unique(ref t) => write!(f, "Box<{}>", **t), + clean::Managed(ref t) => write!(f, "Gc<{}>", **t), clean::RawPointer(m, ref t) => { write!(f, "*{}{}", MutableSpace(m), **t) }