Skip to content

Commit 0282233

Browse files
committed
Auto merge of #91305 - camelid:rm-cond, r=GuillaumeGomez
rustdoc: 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. r? `@jyn514`
2 parents 84abaf3 + 82d8ed4 commit 0282233

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
@@ -1082,9 +1082,6 @@ impl Attributes {
10821082
let mut out = String::new();
10831083
add_doc_fragment(&mut out, ori);
10841084
for new_frag in iter {
1085-
if new_frag.kind != ori.kind || new_frag.parent_module != ori.parent_module {
1086-
break;
1087-
}
10881085
add_doc_fragment(&mut out, new_frag);
10891086
}
10901087
out.pop();

0 commit comments

Comments
 (0)