Skip to content

Commit 82d8ed4

Browse files
committed
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.
1 parent e100ec5 commit 82d8ed4

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/librustdoc/clean/types.rs

-3
Original file line numberDiff line numberDiff line change
@@ -1067,9 +1067,6 @@ impl Attributes {
10671067
let mut out = String::new();
10681068
add_doc_fragment(&mut out, ori);
10691069
for new_frag in iter {
1070-
if new_frag.kind != ori.kind || new_frag.parent_module != ori.parent_module {
1071-
break;
1072-
}
10731070
add_doc_fragment(&mut out, new_frag);
10741071
}
10751072
out.pop();

0 commit comments

Comments
 (0)