Skip to content

Commit ffca6c3

Browse files
committed
rustc: move middle::{def,def_id,pat_util} to hir.
1 parent 7bebe80 commit ffca6c3

File tree

133 files changed

+190
-190
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+190
-190
lines changed

src/librustc/cfg/construct.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
use rustc_data_structures::graph;
1212
use cfg::*;
13-
use middle::def::Def;
14-
use middle::pat_util;
13+
use hir::def::Def;
14+
use hir::pat_util;
1515
use ty::{self, TyCtxt};
1616
use syntax::ast;
1717
use syntax::ptr::P;

src/librustc/dep_graph/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
use self::thread::{DepGraphThreadData, DepMessage};
12-
use middle::def_id::DefId;
12+
use hir::def_id::DefId;
1313
use syntax::ast::NodeId;
1414
use ty::TyCtxt;
1515
use hir;

src/librustc/middle/def.rs renamed to src/librustc/hir/def.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use middle::def_id::DefId;
11+
use hir::def_id::DefId;
1212
use ty::subst::ParamSpace;
1313
use util::nodemap::NodeMap;
1414
use syntax::ast;
File renamed without changes.

src/librustc/hir/map/collector.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use super::MapEntry::*;
1313

1414
use hir::*;
1515
use hir::intravisit::Visitor;
16-
use middle::def_id::{CRATE_DEF_INDEX, DefId, DefIndex};
16+
use hir::def_id::{CRATE_DEF_INDEX, DefId, DefIndex};
1717
use std::iter::repeat;
1818
use syntax::ast::{NodeId, CRATE_NODE_ID, DUMMY_NODE_ID};
1919
use syntax::codemap::Span;

src/librustc/hir/map/definitions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
use middle::cstore::LOCAL_CRATE;
12-
use middle::def_id::{DefId, DefIndex};
12+
use hir::def_id::{DefId, DefIndex};
1313
use rustc_data_structures::fnv::FnvHashMap;
1414
use syntax::ast;
1515
use syntax::parse::token::InternedString;

src/librustc/hir/map/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use dep_graph::{DepGraph, DepNode};
1919

2020
use middle::cstore::InlinedItem;
2121
use middle::cstore::InlinedItem as II;
22-
use middle::def_id::{CRATE_DEF_INDEX, DefId};
22+
use hir::def_id::{CRATE_DEF_INDEX, DefId};
2323

2424
use syntax::abi::Abi;
2525
use syntax::ast::{self, Name, NodeId, DUMMY_NODE_ID};

src/librustc/hir/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,13 @@ macro_rules! hir_vec {
6363
}
6464

6565
pub mod check_attr;
66+
pub mod def;
67+
pub mod def_id;
6668
pub mod fold;
6769
pub mod intravisit;
6870
pub mod lowering;
6971
pub mod map;
72+
pub mod pat_util;
7073
pub mod print;
7174
pub mod svh;
7275

src/librustc/middle/pat_util.rs renamed to src/librustc/hir/pat_util.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use middle::def::*;
12-
use middle::def_id::DefId;
11+
use hir::def::*;
12+
use hir::def_id::DefId;
1313
use ty::TyCtxt;
1414
use util::nodemap::FnvHashMap;
1515

src/librustc/infer/error_reporting.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ use hir;
7878
use hir::print as pprust;
7979

8080
use middle::cstore::CrateStore;
81-
use middle::def::Def;
82-
use middle::def_id::DefId;
81+
use hir::def::Def;
82+
use hir::def_id::DefId;
8383
use infer::{self, TypeOrigin};
8484
use middle::region;
8585
use ty::subst;

0 commit comments

Comments
 (0)