From 82d8ed49096394a344d24a93042aaf3f9e67268c Mon Sep 17 00:00:00 2001 From: Noah Lev Date: Wed, 24 Nov 2021 14:09:03 -0800 Subject: [PATCH] Remove apparently unnecessary conditional in `doc_value` I need to remove this conditional for #91072, but while it seems unnecessary, we are not certain. So, the plan is to first remove the conditional and see if any regressions pop up before doing the refactor. This way, it will be easier to revert if there are subtle regressions. --- src/librustdoc/clean/types.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/librustdoc/clean/types.rs b/src/librustdoc/clean/types.rs index cb4896fbfd2..2a948c4a19a 100644 --- a/src/librustdoc/clean/types.rs +++ b/src/librustdoc/clean/types.rs @@ -1067,9 +1067,6 @@ impl Attributes { let mut out = String::new(); add_doc_fragment(&mut out, ori); for new_frag in iter { - if new_frag.kind != ori.kind || new_frag.parent_module != ori.parent_module { - break; - } add_doc_fragment(&mut out, new_frag); } out.pop();