1
Fork 0

{rustc::hir -> rustc_hir}::intravisit

This commit is contained in:
Mazdak Farrokhzad 2020-01-07 17:30:29 +01:00
parent 8351667091
commit 37d76dc2f7
3 changed files with 7 additions and 3 deletions

View file

@ -4,10 +4,11 @@
pub mod check_attr; pub mod check_attr;
pub mod exports; pub mod exports;
pub mod intravisit;
pub mod map; pub mod map;
pub mod upvars; pub mod upvars;
pub use rustc_hir::intravisit;
use crate::ty::query::Providers; use crate::ty::query::Providers;
pub fn provide(providers: &mut Providers<'_>) { pub fn provide(providers: &mut Providers<'_>) {

View file

@ -31,10 +31,12 @@
//! This order consistency is required in a few places in rustc, for //! This order consistency is required in a few places in rustc, for
//! example generator inference, and possibly also HIR borrowck. //! example generator inference, and possibly also HIR borrowck.
use rustc_hir::itemlikevisit::{ItemLikeVisitor, ParItemLikeVisitor}; use crate::hir::*;
use rustc_hir::*; use crate::hir_id::CRATE_HIR_ID;
use crate::itemlikevisit::{ItemLikeVisitor, ParItemLikeVisitor};
use rustc_span::Span; use rustc_span::Span;
use syntax::ast::{Attribute, Ident, Label, Name}; use syntax::ast::{Attribute, Ident, Label, Name};
use syntax::walk_list;
pub struct DeepVisitor<'v, V> { pub struct DeepVisitor<'v, V> {
visitor: &'v mut V, visitor: &'v mut V,

View file

@ -15,6 +15,7 @@ pub mod def;
pub mod def_id; pub mod def_id;
mod hir; mod hir;
pub mod hir_id; pub mod hir_id;
pub mod intravisit;
pub mod itemlikevisit; pub mod itemlikevisit;
pub mod pat_util; pub mod pat_util;
pub mod print; pub mod print;