Skip to content

Commit 37d76dc

Browse files
committed
{rustc::hir -> rustc_hir}::intravisit
1 parent 8351667 commit 37d76dc

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

src/librustc/hir/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
55
pub mod check_attr;
66
pub mod exports;
7-
pub mod intravisit;
87
pub mod map;
98
pub mod upvars;
109

10+
pub use rustc_hir::intravisit;
11+
1112
use crate::ty::query::Providers;
1213

1314
pub fn provide(providers: &mut Providers<'_>) {

src/librustc/hir/intravisit.rs renamed to src/librustc_hir/intravisit.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@
3131
//! This order consistency is required in a few places in rustc, for
3232
//! example generator inference, and possibly also HIR borrowck.
3333
34-
use rustc_hir::itemlikevisit::{ItemLikeVisitor, ParItemLikeVisitor};
35-
use rustc_hir::*;
34+
use crate::hir::*;
35+
use crate::hir_id::CRATE_HIR_ID;
36+
use crate::itemlikevisit::{ItemLikeVisitor, ParItemLikeVisitor};
3637
use rustc_span::Span;
3738
use syntax::ast::{Attribute, Ident, Label, Name};
39+
use syntax::walk_list;
3840

3941
pub struct DeepVisitor<'v, V> {
4042
visitor: &'v mut V,

src/librustc_hir/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ pub mod def;
1515
pub mod def_id;
1616
mod hir;
1717
pub mod hir_id;
18+
pub mod intravisit;
1819
pub mod itemlikevisit;
1920
pub mod pat_util;
2021
pub mod print;

0 commit comments

Comments
 (0)