diff options
| author | bors <bors@rust-lang.org> | 2014-06-17 16:26:33 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-06-17 16:26:33 +0000 |
| commit | db298145c702c49e5f3cc17adeafe58c8b1bbd6a (patch) | |
| tree | 3d3a1d7142583d2e0c25d9565361309cd2c79f25 /src | |
| parent | acc944a35c315c97e9c666cee7f55f7a795ecf04 (diff) | |
| parent | 7b42e3851c320d5a5f0f27c2b5649efafd8e5057 (diff) | |
| download | rust-db298145c702c49e5f3cc17adeafe58c8b1bbd6a.tar.gz rust-db298145c702c49e5f3cc17adeafe58c8b1bbd6a.zip | |
auto merge of #14957 : alexcrichton/rust/rustdoc-fixups, r=huonw
Fixing some of rustdoc's rendering to use newer syntaxes rather than older syntaxes.
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustdoc/html/format.rs | 11 |
1 files 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<Vec<clean::TyParamBound> >) -> 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) } |
