]> git.lizzy.rs Git - rust.git/commitdiff
rebasing
authorNick Cameron <ncameron@mozilla.com>
Tue, 26 Apr 2016 02:06:24 +0000 (14:06 +1200)
committerNick Cameron <ncameron@mozilla.com>
Mon, 2 May 2016 23:15:09 +0000 (11:15 +1200)
Note that this whole PR is a [breaking-change] for clients of the Compiler API.

src/librustc_driver/lib.rs
src/librustc_driver/pretty.rs

index dc181d106f488ac7623617d172857b34d937e464..ceb851da530acbdbcf152382997467daedc91f1d 100644 (file)
@@ -462,7 +462,6 @@ fn build_controller(&mut self,
                 };
                 control.after_write_deps.callback = box move |state| {
                     pretty::print_after_write_deps(state.session,
-                                                   state.cstore.unwrap(),
                                                    state.ast_map.unwrap(),
                                                    state.input,
                                                    &state.expanded_crate.take().unwrap(),
index 4e07728807643ab4c6e32e5103f8d0dc6d65201d..30f943bd9a4441cd362ea8f06c81e78e4d634d29 100644 (file)
@@ -26,8 +26,6 @@
 use rustc_borrowck as borrowck;
 use rustc_borrowck::graphviz as borrowck_dot;
 use rustc_resolve as resolve;
-use rustc_metadata::cstore::CStore;
-use rustc_metadata::creader::LocalCrateReader;
 
 use rustc_mir::pretty::write_mir_pretty;
 use rustc_mir::graphviz::write_mir_graphviz;
@@ -42,7 +40,6 @@
 
 use graphviz as dot;
 
-use std::cell::RefCell;
 use std::fs::File;
 use std::io::{self, Write};
 use std::iter;
@@ -813,7 +810,6 @@ pub fn print_after_parsing(sess: &Session,
 }
 
 pub fn print_after_write_deps<'tcx, 'a: 'tcx>(sess: &'a Session,
-                                              cstore: &CStore,
                                               ast_map: &hir_map::Map<'tcx>,
                                               input: &Input,
                                               krate: &ast::Crate,
@@ -826,7 +822,7 @@ pub fn print_after_write_deps<'tcx, 'a: 'tcx>(sess: &'a Session,
     let _ignore = dep_graph.in_ignore();
 
     if ppm.needs_analysis() {
-        print_with_analysis(sess, cstore, ast_map, crate_name, arenas, ppm, opt_uii, ofile);
+        print_with_analysis(sess, ast_map, crate_name, arenas, ppm, opt_uii, ofile);
         return;
     }
 
@@ -917,7 +913,6 @@ pub fn print_after_write_deps<'tcx, 'a: 'tcx>(sess: &'a Session,
 // with a different callback than the standard driver, so that isn't easy.
 // Instead, we call that function ourselves.
 fn print_with_analysis<'tcx, 'a: 'tcx>(sess: &'a Session,
-                                       cstore: &CStore,
                                        ast_map: &hir_map::Map<'tcx>,
                                        crate_name: &str,
                                        arenas: &'tcx ty::CtxtArenas<'tcx>,