diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-12-19 10:45:55 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-19 10:45:55 +0100 |
| commit | 1f080f64ee0e09a56b73f0fd55d49fa2afd3eeb5 (patch) | |
| tree | c8d6261e269a3fa38c55b03da9c93e06d412238a /src/librustdoc/html/render/mod.rs | |
| parent | 690d6b0958cdc7c06f23d57deedd21010810af96 (diff) | |
| parent | dea1c6861409b06d2e3f4ebfb46af908a1b3ae29 (diff) | |
Rollup merge of #92077 - jyn514:remove-collapsed, r=GuillaumeGomez
rustdoc: Remove unused `collapsed` field `render/context` always runs after `run_global_context`, so it was always set to `true`. This is a holdover from when rustdoc allowed configuring passes, but the `collapse-docs` pass was removed ages ago, and the ability to configure passes is about to be removed. Found while reviewing https://github.com/rust-lang/rust/pull/91305.
Diffstat (limited to 'src/librustdoc/html/render/mod.rs')
| -rw-r--r-- | src/librustdoc/html/render/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs index 2432f5cc085..f921e910294 100644 --- a/src/librustdoc/html/render/mod.rs +++ b/src/librustdoc/html/render/mod.rs @@ -567,7 +567,7 @@ fn document_full_inner( is_collapsible: bool, heading_offset: HeadingOffset, ) { - if let Some(s) = cx.shared.maybe_collapsed_doc_value(item) { + if let Some(s) = item.collapsed_doc_value() { debug!("Doc block: =====\n{}\n=====", s); if is_collapsible { w.write_str( @@ -1612,7 +1612,7 @@ fn render_impl( write!(w, "</summary>") } - if let Some(ref dox) = cx.shared.maybe_collapsed_doc_value(&i.impl_item) { + if let Some(ref dox) = i.impl_item.collapsed_doc_value() { let mut ids = cx.id_map.borrow_mut(); write!( w, |
