diff options
| author | Oliver Middleton <olliemail27@gmail.com> | 2016-06-28 22:50:44 +0100 |
|---|---|---|
| committer | Oliver Middleton <olliemail27@gmail.com> | 2016-06-28 22:53:50 +0100 |
| commit | f05da01dbe3ce8e7460a1d47d489f85a1fa1cbb7 (patch) | |
| tree | 905a07742aa4e359e06bcef4899b5c60f8f6171b /src/librustdoc/html | |
| parent | 126af085be2b760b859d073d8aff164572ef7d4a (diff) | |
rustdoc: Fix empty Implementations section on some module pages
These are caused by `DefaultImpl`s.
Diffstat (limited to 'src/librustdoc/html')
| -rw-r--r-- | src/librustdoc/html/render.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs index f63d37b3403..48acf31b993 100644 --- a/src/librustdoc/html/render.rs +++ b/src/librustdoc/html/render.rs @@ -1696,6 +1696,9 @@ fn item_module(w: &mut fmt::Formatter, cx: &Context, document(w, cx, item)?; let mut indices = (0..items.len()).filter(|i| { + if let clean::DefaultImplItem(..) = items[*i].inner { + return false; + } !cx.maybe_ignore_item(&items[*i]) }).collect::<Vec<usize>>(); |
