Skip to content

Commit

Permalink
Auto merge of #91305 - camelid:rm-cond, r=GuillaumeGomez
Browse files Browse the repository at this point in the history
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`
  • Loading branch information
bors committed Jan 8, 2022
2 parents 84abaf3 + 82d8ed4 commit 0282233
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/librustdoc/clean/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1082,9 +1082,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();
Expand Down

0 comments on commit 0282233

Please sign in to comment.