Skip to content

Commit f28a4e9

Browse files
Also move the MIR visitor to librustc.
1 parent bbe1d28 commit f28a4e9

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/librustc/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ pub mod middle {
139139
pub mod mir {
140140
pub mod repr;
141141
pub mod tcx;
142+
pub mod visit;
142143
}
143144

144145
pub mod session;

src/librustc_mir/visit.rs renamed to src/librustc/mir/visit.rs

+2-2
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 rustc::middle::ty::Region;
12-
use rustc::mir::repr::*;
11+
use middle::ty::Region;
12+
use mir::repr::*;
1313

1414
pub trait Visitor<'tcx> {
1515
// Override these, and call `self.super_xxx` to revert back to the

src/librustc_mir/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,4 @@ pub mod mir_map;
3434
mod hair;
3535
mod graphviz;
3636
pub mod transform;
37-
pub mod visit;
3837

src/librustc_trans/trans/mir/analyze.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
1414
use rustc_data_structures::fnv::FnvHashSet;
1515
use rustc::mir::repr as mir;
16-
use rustc_mir::visit::{Visitor, LvalueContext};
16+
use rustc::mir::visit::{Visitor, LvalueContext};
1717
use trans::common::{self, Block};
1818
use super::rvalue;
1919

0 commit comments

Comments
 (0)