File tree Expand file tree Collapse file tree 14 files changed +11
-18
lines changed Expand file tree Collapse file tree 14 files changed +11
-18
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ DEPS_rustc := syntax fmt_macros flate arena serialize getopts rbml \
109
109
log graphviz rustc_llvm rustc_back rustc_data_structures\
110
110
rustc_const_math
111
111
DEPS_rustc_back := std syntax flate log libc
112
- DEPS_rustc_borrowck := rustc rustc_mir log graphviz syntax
112
+ DEPS_rustc_borrowck := rustc log graphviz syntax rustc_mir
113
113
DEPS_rustc_data_structures := std log serialize
114
114
DEPS_rustc_driver := arena flate getopts graphviz libc rustc rustc_back rustc_borrowck \
115
115
rustc_typeck rustc_mir rustc_resolve log syntax serialize rustc_llvm \
@@ -123,9 +123,9 @@ DEPS_rustc_passes := syntax rustc core rustc_const_eval
123
123
DEPS_rustc_mir := rustc syntax rustc_const_math rustc_const_eval rustc_bitflags
124
124
DEPS_rustc_resolve := arena rustc log syntax
125
125
DEPS_rustc_platform_intrinsics := std
126
- DEPS_rustc_plugin := rustc rustc_metadata syntax rustc_mir
126
+ DEPS_rustc_plugin := rustc rustc_metadata syntax
127
127
DEPS_rustc_privacy := rustc log syntax
128
- DEPS_rustc_trans := arena flate getopts graphviz libc rustc rustc_back rustc_mir \
128
+ DEPS_rustc_trans := arena flate getopts graphviz libc rustc rustc_back \
129
129
log syntax serialize rustc_llvm rustc_platform_intrinsics \
130
130
rustc_const_math rustc_const_eval rustc_incremental
131
131
DEPS_rustc_incremental := rbml rustc serialize rustc_data_structures
Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ pub mod mir {
106
106
pub mod tcx;
107
107
pub mod visit;
108
108
pub mod transform;
109
+ pub mod traversal;
109
110
pub mod mir_map;
110
111
}
111
112
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ use std::vec;
12
12
13
13
use rustc_data_structures:: bitvec:: BitVector ;
14
14
15
- use rustc :: mir :: repr:: * ;
15
+ use super :: repr:: * ;
16
16
17
17
/// Preorder traversal of a graph.
18
18
///
Original file line number Diff line number Diff line change @@ -49,4 +49,3 @@ mod hair;
49
49
pub mod mir_map;
50
50
pub mod pretty;
51
51
pub mod transform;
52
- pub mod traversal;
Original file line number Diff line number Diff line change 11
11
use rustc:: ty:: TyCtxt ;
12
12
use rustc:: mir:: repr:: * ;
13
13
use rustc:: mir:: transform:: { MirPass , MirSource , Pass } ;
14
-
14
+ use rustc :: mir :: traversal ;
15
15
use pretty;
16
16
17
- use traversal;
18
-
19
17
pub struct AddCallGuards ;
20
18
21
19
/**
Original file line number Diff line number Diff line change 24
24
25
25
use rustc:: mir:: repr:: * ;
26
26
use rustc:: mir:: visit:: { LvalueContext , MutVisitor , Visitor } ;
27
+ use rustc:: mir:: traversal:: ReversePostorder ;
27
28
use rustc:: ty:: { self , TyCtxt } ;
28
29
use syntax:: codemap:: Span ;
29
30
30
31
use build:: Location ;
31
- use traversal:: ReversePostorder ;
32
32
33
33
use std:: mem;
34
34
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ use rustc::ty::cast::CastTy;
25
25
use rustc:: mir:: repr:: * ;
26
26
use rustc:: mir:: mir_map:: MirMap ;
27
27
use rustc:: mir:: transform:: { Pass , MirMapPass , MirSource } ;
28
+ use rustc:: mir:: traversal:: { self , ReversePostorder } ;
28
29
use rustc:: mir:: visit:: { LvalueContext , Visitor } ;
29
30
use rustc:: util:: nodemap:: DefIdMap ;
30
31
use syntax:: abi:: Abi ;
@@ -35,7 +36,6 @@ use std::collections::hash_map::Entry;
35
36
use std:: fmt;
36
37
37
38
use build:: Location ;
38
- use traversal:: { self , ReversePostorder } ;
39
39
40
40
use super :: promote_consts:: { self , Candidate , TempState } ;
41
41
Original file line number Diff line number Diff line change @@ -13,13 +13,12 @@ use rustc::middle::const_val::ConstVal;
13
13
use rustc:: ty:: TyCtxt ;
14
14
use rustc:: mir:: repr:: * ;
15
15
use rustc:: mir:: transform:: { MirPass , MirSource , Pass } ;
16
+ use rustc:: mir:: traversal;
16
17
use pretty;
17
18
use std:: mem;
18
19
19
20
use super :: remove_dead_blocks:: RemoveDeadBlocks ;
20
21
21
- use traversal;
22
-
23
22
pub struct SimplifyCfg ;
24
23
25
24
impl SimplifyCfg {
Original file line number Diff line number Diff line change @@ -14,5 +14,4 @@ rustc = { path = "../librustc" }
14
14
rustc_back = { path = " ../librustc_back" }
15
15
rustc_bitflags = { path = " ../librustc_bitflags" }
16
16
rustc_metadata = { path = " ../librustc_metadata" }
17
- rustc_mir = { path = " ../librustc_mir" }
18
17
syntax = { path = " ../libsyntax" }
Original file line number Diff line number Diff line change 70
70
extern crate rustc;
71
71
extern crate rustc_back;
72
72
extern crate rustc_metadata;
73
- extern crate rustc_mir;
74
73
75
74
pub use self :: registry:: Registry ;
76
75
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ rustc_const_math = { path = "../librustc_const_math" }
21
21
rustc_data_structures = { path = " ../librustc_data_structures" }
22
22
rustc_incremental = { path = " ../librustc_incremental" }
23
23
rustc_llvm = { path = " ../librustc_llvm" }
24
- rustc_mir = { path = " ../librustc_mir" }
25
24
rustc_platform_intrinsics = { path = " ../librustc_platform_intrinsics" }
26
25
serialize = { path = " ../libserialize" }
27
26
syntax = { path = " ../libsyntax" }
Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ extern crate rustc_back;
48
48
extern crate rustc_data_structures;
49
49
extern crate rustc_incremental;
50
50
pub extern crate rustc_llvm as llvm;
51
- extern crate rustc_mir;
52
51
extern crate rustc_platform_intrinsics as intrinsics;
53
52
extern crate serialize;
54
53
extern crate rustc_const_math;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ use rustc_data_structures::bitvec::BitVector;
15
15
use rustc:: mir:: repr as mir;
16
16
use rustc:: mir:: repr:: TerminatorKind ;
17
17
use rustc:: mir:: visit:: { Visitor , LvalueContext } ;
18
- use rustc_mir :: traversal;
18
+ use rustc :: mir :: traversal;
19
19
use common:: { self , Block , BlockAndBuilder } ;
20
20
use super :: rvalue;
21
21
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ use rustc_data_structures::bitvec::BitVector;
34
34
pub use self :: constant:: trans_static_initializer;
35
35
36
36
use self :: lvalue:: { LvalueRef , get_dataptr, get_meta} ;
37
- use rustc_mir :: traversal;
37
+ use rustc :: mir :: traversal;
38
38
39
39
use self :: operand:: { OperandRef , OperandValue } ;
40
40
You can’t perform that action at this time.
0 commit comments