diff options
| author | Noah Lev <camelidcamel@gmail.com> | 2021-11-24 14:09:03 -0800 |
|---|---|---|
| committer | Noah Lev <camelidcamel@gmail.com> | 2021-12-21 18:00:25 -0800 |
| commit | 82d8ed49096394a344d24a93042aaf3f9e67268c (patch) | |
| tree | b99fea06ebf947498dd5746935c76c262ebfdd88 | |
| parent | e100ec5bc7cd768ec17d75448b29c9ab4a39272b (diff) | |
| download | rust-82d8ed49096394a344d24a93042aaf3f9e67268c.tar.gz rust-82d8ed49096394a344d24a93042aaf3f9e67268c.zip | |
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.
| -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 cb4896fbfd2..2a948c4a19a 100644 --- a/src/librustdoc/clean/types.rs +++ b/src/librustdoc/clean/types.rs @@ -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(); |
