diff options
| author | bors <bors@rust-lang.org> | 2021-06-18 07:49:41 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-06-18 07:49:41 +0000 |
| commit | 966361fe495def7f6ceb63fa769b892089e19cb3 (patch) | |
| tree | 9a1ba1552978fe38b1878472b0c2a7754cd01c33 /src/librustdoc/html/render/mod.rs | |
| parent | ed3378733574e1acab67f6cd4e9f251be1a31ec4 (diff) | |
| parent | 5f7d44171de8b84558fc76a0f305d83fd6fa34f3 (diff) | |
| download | rust-966361fe495def7f6ceb63fa769b892089e19cb3.tar.gz rust-966361fe495def7f6ceb63fa769b892089e19cb3.zip | |
Auto merge of #86322 - trinity-1686a:rustdoc-fix-overflow-recursive-deref, r=jyn514
fix rustdoc stack overflow on mutually recursive Deref fix #85095 fix #85037
Diffstat (limited to 'src/librustdoc/html/render/mod.rs')
| -rw-r--r-- | src/librustdoc/html/render/mod.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs index 499f33f14f5..62d3c142eeb 100644 --- a/src/librustdoc/html/render/mod.rs +++ b/src/librustdoc/html/render/mod.rs @@ -1997,19 +1997,6 @@ fn sidebar_deref_methods(cx: &Context<'_>, out: &mut Buffer, impl_: &Impl, v: &V out.push_str("</div>"); } } - - // Recurse into any further impls that might exist for `target` - if let Some(target_did) = target.def_id_full(c) { - if let Some(target_impls) = c.impls.get(&target_did) { - if let Some(target_deref_impl) = target_impls - .iter() - .filter(|i| i.inner_impl().trait_.is_some()) - .find(|i| i.inner_impl().trait_.def_id_full(c) == c.deref_trait_did) - { - sidebar_deref_methods(cx, out, target_deref_impl, target_impls); - } - } - } } } |
