diff options
| author | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-06-29 00:33:10 +0000 |
|---|---|---|
| committer | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-06-29 00:33:30 +0000 |
| commit | 2fda7d4a514cb5381a70ac279faff53bed22e395 (patch) | |
| tree | 90232ef8f8d44170f3398abd01f53fcbfab6b3a2 /src/librustdoc/html | |
| parent | ea0dc9297283daff6486807f43e190b4eb561412 (diff) | |
| parent | cc181040348966789413387d4f99fc81673f60c7 (diff) | |
| download | rust-2fda7d4a514cb5381a70ac279faff53bed22e395.tar.gz rust-2fda7d4a514cb5381a70ac279faff53bed22e395.zip | |
Rollup merge of #34105 - ollie27:rustdoc_derived, r=alexcrichton
rustdoc: Remove Derived Implementations title As far as I know whether a trait was derived or not does not change the public API so there is no need to include this information in the docs. This title currently just adds an extra divide in the list of trait implementations which I don't think needs to be there.
Diffstat (limited to 'src/librustdoc/html')
| -rw-r--r-- | src/librustdoc/html/render.rs | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs index f63d37b3403..21463527ab9 100644 --- a/src/librustdoc/html/render.rs +++ b/src/librustdoc/html/render.rs @@ -399,7 +399,6 @@ fn init_ids() -> HashMap<String, usize> { "methods", "deref-methods", "implementations", - "derived_implementations" ].into_iter().map(|id| (String::from(*id), 1)).collect() } @@ -2524,25 +2523,11 @@ fn render_assoc_items(w: &mut fmt::Formatter, } write!(w, "<h2 id='implementations'>Trait \ Implementations</h2>")?; - let (derived, manual): (Vec<_>, Vec<&Impl>) = traits.iter().partition(|i| { - i.inner_impl().derived - }); - for i in &manual { + for i in &traits { let did = i.trait_did().unwrap(); let assoc_link = AssocItemLink::GotoSource(did, &i.inner_impl().provided_trait_methods); render_impl(w, cx, i, assoc_link, true, containing_item.stable_since())?; } - if !derived.is_empty() { - write!(w, "<h3 id='derived_implementations'>\ - Derived Implementations \ - </h3>")?; - for i in &derived { - let did = i.trait_did().unwrap(); - let assoc_link = AssocItemLink::GotoSource(did, - &i.inner_impl().provided_trait_methods); - render_impl(w, cx, i, assoc_link, true, containing_item.stable_since())?; - } - } } Ok(()) } |
