@@ -26,8 +26,6 @@ use rustc::session::config::Input;
26
26
use rustc_borrowck as borrowck;
27
27
use rustc_borrowck:: graphviz as borrowck_dot;
28
28
use rustc_resolve as resolve;
29
- use rustc_metadata:: cstore:: CStore ;
30
- use rustc_metadata:: creader:: LocalCrateReader ;
31
29
32
30
use rustc_mir:: pretty:: write_mir_pretty;
33
31
use rustc_mir:: graphviz:: write_mir_graphviz;
@@ -42,7 +40,6 @@ use syntax::util::small_vector::SmallVector;
42
40
43
41
use graphviz as dot;
44
42
45
- use std:: cell:: RefCell ;
46
43
use std:: fs:: File ;
47
44
use std:: io:: { self , Write } ;
48
45
use std:: iter;
@@ -813,7 +810,6 @@ pub fn print_after_parsing(sess: &Session,
813
810
}
814
811
815
812
pub fn print_after_write_deps < ' tcx , ' a : ' tcx > ( sess : & ' a Session ,
816
- cstore : & CStore ,
817
813
ast_map : & hir_map:: Map < ' tcx > ,
818
814
input : & Input ,
819
815
krate : & ast:: Crate ,
@@ -826,7 +822,7 @@ pub fn print_after_write_deps<'tcx, 'a: 'tcx>(sess: &'a Session,
826
822
let _ignore = dep_graph. in_ignore ( ) ;
827
823
828
824
if ppm. needs_analysis ( ) {
829
- print_with_analysis ( sess, cstore , ast_map, crate_name, arenas, ppm, opt_uii, ofile) ;
825
+ print_with_analysis ( sess, ast_map, crate_name, arenas, ppm, opt_uii, ofile) ;
830
826
return ;
831
827
}
832
828
@@ -917,7 +913,6 @@ pub fn print_after_write_deps<'tcx, 'a: 'tcx>(sess: &'a Session,
917
913
// with a different callback than the standard driver, so that isn't easy.
918
914
// Instead, we call that function ourselves.
919
915
fn print_with_analysis < ' tcx , ' a : ' tcx > ( sess : & ' a Session ,
920
- cstore : & CStore ,
921
916
ast_map : & hir_map:: Map < ' tcx > ,
922
917
crate_name : & str ,
923
918
arenas : & ' tcx ty:: CtxtArenas < ' tcx > ,
0 commit comments