Skip to content

Commit 8adb0b6

Browse files
committed
Clean up clean re-exports
This will allow re-exporting only certain enum variants.
1 parent 37a4971 commit 8adb0b6

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

src/librustdoc/clean/mod.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,6 @@ use utils::*;
4343

4444
crate use utils::{get_auto_trait_and_blanket_impls, krate, register_res};
4545

46-
crate use self::types::FnRetTy::*;
47-
crate use self::types::ItemKind::*;
48-
crate use self::types::SelfTy::*;
49-
crate use self::types::Type::*;
50-
crate use self::types::Visibility::{Inherited, Public};
5146
crate use self::types::*;
5247

5348
crate trait Clean<T> {

src/librustdoc/clean/types.rs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ use rustc_target::spec::abi::Abi;
3434
use crate::clean::cfg::Cfg;
3535
use crate::clean::external_path;
3636
use crate::clean::inline::{self, print_inlined_const};
37-
use crate::clean::types::Type::{QPath, ResolvedPath};
3837
use crate::clean::utils::{is_literal_expr, print_const_expr, print_evaluated_const};
3938
use crate::clean::Clean;
4039
use crate::core::DocContext;
@@ -43,10 +42,14 @@ use crate::formats::item_type::ItemType;
4342
use crate::html::render::cache::ExternalLocation;
4443
use crate::html::render::Context;
4544

46-
use self::FnRetTy::*;
47-
use self::ItemKind::*;
48-
use self::SelfTy::*;
49-
use self::Type::*;
45+
crate use self::FnRetTy::*;
46+
crate use self::ItemKind::*;
47+
crate use self::SelfTy::*;
48+
crate use self::Type::{
49+
Array, BareFunction, BorrowedRef, DynTrait, Generic, ImplTrait, Infer, Primitive, QPath,
50+
RawPointer, ResolvedPath, Slice, Tuple,
51+
};
52+
crate use self::Visibility::{Inherited, Public};
5053

5154
crate type ItemIdSet = FxHashSet<ItemId>;
5255

0 commit comments

Comments
 (0)