Skip to content

Commit

Permalink
rebasing
Browse files Browse the repository at this point in the history
Note that this whole PR is a [breaking-change] for clients of the Compiler API.
  • Loading branch information
nrc committed May 2, 2016
1 parent aaf56d7 commit c1c6e99
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion src/librustc_driver/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,6 @@ impl<'a> CompilerCalls<'a> for RustcDefaultCalls {
};
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(),
Expand Down
7 changes: 1 addition & 6 deletions src/librustc_driver/pretty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ use rustc::session::config::Input;
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;
Expand All @@ -42,7 +40,6 @@ use syntax::util::small_vector::SmallVector;

use graphviz as dot;

use std::cell::RefCell;
use std::fs::File;
use std::io::{self, Write};
use std::iter;
Expand Down Expand Up @@ -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,
Expand All @@ -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;
}

Expand Down Expand Up @@ -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>,
Expand Down

0 comments on commit c1c6e99

Please sign in to comment.