@@ -26,8 +26,6 @@ use rustc::session::config::Input;
2626use rustc_borrowck as borrowck;
2727use rustc_borrowck:: graphviz as borrowck_dot;
2828use rustc_resolve as resolve;
29- use rustc_metadata:: cstore:: CStore ;
30- use rustc_metadata:: creader:: LocalCrateReader ;
3129
3230use rustc_mir:: pretty:: write_mir_pretty;
3331use rustc_mir:: graphviz:: write_mir_graphviz;
@@ -42,7 +40,6 @@ use syntax::util::small_vector::SmallVector;
4240
4341use graphviz as dot;
4442
45- use std:: cell:: RefCell ;
4643use std:: fs:: File ;
4744use std:: io:: { self , Write } ;
4845use std:: iter;
@@ -813,7 +810,6 @@ pub fn print_after_parsing(sess: &Session,
813810}
814811
815812pub fn print_after_write_deps < ' tcx , ' a : ' tcx > ( sess : & ' a Session ,
816- cstore : & CStore ,
817813 ast_map : & hir_map:: Map < ' tcx > ,
818814 input : & Input ,
819815 krate : & ast:: Crate ,
@@ -826,7 +822,7 @@ pub fn print_after_write_deps<'tcx, 'a: 'tcx>(sess: &'a Session,
826822 let _ignore = dep_graph. in_ignore ( ) ;
827823
828824 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) ;
830826 return ;
831827 }
832828
@@ -917,7 +913,6 @@ pub fn print_after_write_deps<'tcx, 'a: 'tcx>(sess: &'a Session,
917913// with a different callback than the standard driver, so that isn't easy.
918914// Instead, we call that function ourselves.
919915fn print_with_analysis < ' tcx , ' a : ' tcx > ( sess : & ' a Session ,
920- cstore : & CStore ,
921916 ast_map : & hir_map:: Map < ' tcx > ,
922917 crate_name : & str ,
923918 arenas : & ' tcx ty:: CtxtArenas < ' tcx > ,
0 commit comments