diff options
| author | bors <bors@rust-lang.org> | 2022-01-08 08:55:46 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-01-08 08:55:46 +0000 |
| commit | 02822334e9bd22df33c0692cbaade5a5b5449130 (patch) | |
| tree | 447bae8be23508690d03bc199e0572d601660260 | |
| parent | 84abaf3f7dc2b7c2b453deb18890d00d28ebd844 (diff) | |
| parent | 82d8ed49096394a344d24a93042aaf3f9e67268c (diff) | |
| download | rust-02822334e9bd22df33c0692cbaade5a5b5449130.tar.gz rust-02822334e9bd22df33c0692cbaade5a5b5449130.zip | |
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`
| -rw-r--r-- | src/librustdoc/clean/types.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/librustdoc/clean/types.rs b/src/librustdoc/clean/types.rs index f0f61bb94c8..bfe4a24b942 100644 --- a/src/librustdoc/clean/types.rs +++ b/src/librustdoc/clean/types.rs @@ -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(); |
