diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-01-05 01:50:05 +0100 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-01-05 12:47:11 +0100 |
| commit | 62ac10ffdec716ca1763bf0a1e45430449a7bbde (patch) | |
| tree | 49f994dbda4e38ce40c84f9dd8e7ea49cc97cd94 /src/librustc | |
| parent | 7785834159030e8d734af31d27bef4acfeabd9f2 (diff) | |
| download | rust-62ac10ffdec716ca1763bf0a1e45430449a7bbde.tar.gz rust-62ac10ffdec716ca1763bf0a1e45430449a7bbde.zip | |
simplify reexports in rustc::hir
Diffstat (limited to 'src/librustc')
| -rw-r--r-- | src/librustc/hir.rs | 11 | ||||
| -rw-r--r-- | src/librustc/hir/intravisit.rs | 2 |
2 files changed, 1 insertions, 12 deletions
diff --git a/src/librustc/hir.rs b/src/librustc/hir.rs index 62160fed1bc..f20ad203685 100644 --- a/src/librustc/hir.rs +++ b/src/librustc/hir.rs @@ -3,22 +3,11 @@ //! [rustc guide]: https://rust-lang.github.io/rustc-guide/hir.html pub mod check_attr; -pub use rustc_hir::def; pub mod exports; -pub use rustc_hir::def_id; -pub use rustc_hir::hir_id::*; pub mod intravisit; -pub use rustc_hir::itemlikevisit; pub mod map; -pub use rustc_hir::pat_util; -pub use rustc_hir::print; pub mod upvars; -pub use rustc_hir::BlockCheckMode::*; -pub use rustc_hir::FunctionRetTy::*; -pub use rustc_hir::PrimTy::*; -pub use rustc_hir::UnOp::*; -pub use rustc_hir::UnsafeSource::*; pub use rustc_hir::*; use crate::ty::query::Providers; diff --git a/src/librustc/hir/intravisit.rs b/src/librustc/hir/intravisit.rs index 780b0e36b5e..2c0da208d87 100644 --- a/src/librustc/hir/intravisit.rs +++ b/src/librustc/hir/intravisit.rs @@ -867,7 +867,7 @@ pub fn walk_where_predicate<'v, V: Visitor<'v>>( } pub fn walk_fn_ret_ty<'v, V: Visitor<'v>>(visitor: &mut V, ret_ty: &'v FunctionRetTy<'v>) { - if let Return(ref output_ty) = *ret_ty { + if let FunctionRetTy::Return(ref output_ty) = *ret_ty { visitor.visit_ty(output_ty) } } |
