@@ -18,16 +18,15 @@ pub use self::bckerr_code::*;
18
18
pub use self :: AliasableViolationKind :: * ;
19
19
pub use self :: MovedValueUseKind :: * ;
20
20
21
- use middle:: cfg;
22
- use middle:: dataflow:: DataFlowContext ;
23
- use middle:: dataflow:: BitwiseOperator ;
24
- use middle:: dataflow:: DataFlowOperator ;
25
- use middle:: expr_use_visitor as euv;
26
- use middle:: mem_categorization as mc;
27
- use middle:: region;
28
- use middle:: ty:: { mod, ParameterEnvironment , Ty } ;
29
- use util:: ppaux:: { note_and_explain_region, Repr , UserString } ;
30
-
21
+ use rustc:: middle:: cfg;
22
+ use rustc:: middle:: dataflow:: DataFlowContext ;
23
+ use rustc:: middle:: dataflow:: BitwiseOperator ;
24
+ use rustc:: middle:: dataflow:: DataFlowOperator ;
25
+ use rustc:: middle:: expr_use_visitor as euv;
26
+ use rustc:: middle:: mem_categorization as mc;
27
+ use rustc:: middle:: region;
28
+ use rustc:: middle:: ty:: { mod, Ty } ;
29
+ use rustc:: util:: ppaux:: { note_and_explain_region, Repr , UserString } ;
31
30
use std:: rc:: Rc ;
32
31
use std:: string:: String ;
33
32
use syntax:: ast;
@@ -55,8 +54,6 @@ pub mod check_loans;
55
54
56
55
pub mod gather_loans;
57
56
58
- pub mod graphviz;
59
-
60
57
pub mod move_data;
61
58
62
59
#[ deriving( Clone ) ]
@@ -298,18 +295,6 @@ pub struct LoanPath<'tcx> {
298
295
ty : ty:: Ty < ' tcx > ,
299
296
}
300
297
301
- impl < ' tcx > LoanPath < ' tcx > {
302
- pub fn eq_debug ( & self , that : & LoanPath < ' tcx > , tcx : & ty:: ctxt < ' tcx > ) -> bool {
303
- let r = self . kind == that. kind ;
304
- if r && self . ty != that. ty {
305
- panic ! ( "eq variants ineq types: {} == {}, {} != {}" ,
306
- self . repr( tcx) , that. repr( tcx) ,
307
- self . ty. repr( tcx) , that. ty. repr( tcx) ) ;
308
- }
309
- r
310
- }
311
- }
312
-
313
298
impl < ' tcx > PartialEq for LoanPath < ' tcx > {
314
299
fn eq ( & self , that : & LoanPath < ' tcx > ) -> bool {
315
300
let r = self . kind == that. kind ;
@@ -560,7 +545,7 @@ impl<'a, 'tcx> BorrowckCtxt<'a, 'tcx> {
560
545
lp : & LoanPath < ' tcx > ,
561
546
the_move : & move_data:: Move ,
562
547
moved_lp : & LoanPath < ' tcx > ,
563
- param_env : & ParameterEnvironment < ' tcx > ) {
548
+ param_env : & ty :: ParameterEnvironment < ' tcx > ) {
564
549
let verb = match use_kind {
565
550
MovedInUse => "use" ,
566
551
MovedInCapture => "capture" ,
0 commit comments