Skip to content

Commit

Permalink
Remove apparently unnecessary conditional in doc_value
Browse files Browse the repository at this point in the history
I need to remove this conditional for rust-lang#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.
  • Loading branch information
camelid committed Dec 22, 2021
1 parent e100ec5 commit 82d8ed4
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 @@ -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();
Expand Down

0 comments on commit 82d8ed4

Please sign in to comment.