Fix missing imports

This commit is contained in:
Guillaume Gomez 2019-12-09 17:53:42 +01:00
parent 0c3067fcff
commit 596705b42f
2 changed files with 24 additions and 0 deletions

View File

@ -5,6 +5,7 @@
pub mod inline; pub mod inline;
pub mod cfg; pub mod cfg;
pub mod utils;
mod auto_trait; mod auto_trait;
mod blanket_impl; mod blanket_impl;
mod simplify; mod simplify;
@ -41,6 +42,10 @@ use std::u32;
use crate::core::{self, DocContext, ImplTraitParam}; use crate::core::{self, DocContext, ImplTraitParam};
use crate::doctree; use crate::doctree;
use utils::*;
pub use utils::{get_auto_trait_and_blanket_impls, krate, register_res};
use self::auto_trait::AutoTraitFinder; use self::auto_trait::AutoTraitFinder;
use self::blanket_impl::BlanketImplFinder; use self::blanket_impl::BlanketImplFinder;

View File

@ -1,4 +1,23 @@
use crate::core::DocContext;
use crate::clean::{
Clean, Crate, Deprecation, ExternalCrate, FnDecl, FunctionRetTy, Generic, GenericArg,
GenericArgs, Generics, GenericBound, GenericParamDef, GetDefId, ImportSource, Item, ItemEnum,
Lifetime, MacroKind, Path, PathSegment, Primitive, PrimitiveType, Region, RegionVid,
ResolvedPath, Span, Stability, Type, TypeBinding, TypeKind, Visibility, WherePredicate, inline,
};
use crate::clean::blanket_impl::BlanketImplFinder;
use crate::clean::auto_trait::AutoTraitFinder;
use rustc::hir;
use rustc::hir::def::{DefKind, Res};
use rustc::hir::def_id::{DefId, LOCAL_CRATE};
use rustc::ty::{self, DefIdTree, Ty};
use rustc::ty::subst::{SubstsRef, GenericArgKind};
use rustc::util::nodemap::FxHashSet;
use syntax_pos;
use syntax_pos::symbol::{Symbol, kw, sym};
use std::mem;
pub fn krate(mut cx: &mut DocContext<'_>) -> Crate { pub fn krate(mut cx: &mut DocContext<'_>) -> Crate {
use crate::visit_lib::LibEmbargoVisitor; use crate::visit_lib::LibEmbargoVisitor;