Skip to content

Commit 7e218bb

Browse files
Don't filter out imports added by the compiler for the moment
1 parent e3b1be3 commit 7e218bb

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/librustdoc/clean/mod.rs

-6
Original file line numberDiff line numberDiff line change
@@ -2232,12 +2232,6 @@ impl Clean<Vec<Item>> for doctree::ExternCrate<'_> {
22322232

22332233
impl Clean<Vec<Item>> for doctree::Import<'_> {
22342234
fn clean(&self, cx: &DocContext<'_>) -> Vec<Item> {
2235-
// We need this comparison because some imports (for std types for example)
2236-
// are "inserted" as well but directly by the compiler and they should not be
2237-
// taken into account.
2238-
if self.span.is_dummy() {
2239-
return Vec::new();
2240-
}
22412235
// We consider inlining the documentation of `pub use` statements, but we
22422236
// forcefully don't inline if this is not public or if the
22432237
// #[doc(no_inline)] attribute is present.

0 commit comments

Comments
 (0)