We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
kw::Empty
1 parent a792234 commit 7a4e2ceCopy full SHA for 7a4e2ce
src/librustdoc/passes/unindent_comments.rs
@@ -1,5 +1,7 @@
1
use std::cmp;
2
3
+use rustc_span::symbol::kw;
4
+
5
use crate::clean::{self, DocFragment, DocFragmentKind, Item};
6
use crate::core::DocContext;
7
use crate::fold::{self, DocFolder};
@@ -87,7 +89,7 @@ fn unindent_fragments(docs: &mut Vec<DocFragment>) {
87
89
};
88
90
91
for fragment in docs {
- if fragment.doc.as_str().lines().next().is_none() {
92
+ if fragment.doc == kw::Empty {
93
continue;
94
}
95
0 commit comments