simplify reexports in rustc::hir
This commit is contained in:
parent
7785834159
commit
62ac10ffde
23 changed files with 72 additions and 78 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue