Don't filter out imports added by the compiler for the moment

This commit is contained in:
Guillaume Gomez 2020-10-05 11:04:08 +02:00
parent e3b1be3b62
commit 7e218bbd1a

View File

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