Fix missing imports
This commit is contained in:
parent
0c3067fcff
commit
596705b42f
@ -5,6 +5,7 @@
|
||||
|
||||
pub mod inline;
|
||||
pub mod cfg;
|
||||
pub mod utils;
|
||||
mod auto_trait;
|
||||
mod blanket_impl;
|
||||
mod simplify;
|
||||
@ -41,6 +42,10 @@
|
||||
use crate::core::{self, DocContext, ImplTraitParam};
|
||||
use crate::doctree;
|
||||
|
||||
use utils::*;
|
||||
|
||||
pub use utils::{get_auto_trait_and_blanket_impls, krate, register_res};
|
||||
|
||||
use self::auto_trait::AutoTraitFinder;
|
||||
use self::blanket_impl::BlanketImplFinder;
|
||||
|
||||
|
@ -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 {
|
||||
use crate::visit_lib::LibEmbargoVisitor;
|
||||
|
Loading…
Reference in New Issue
Block a user