Skip to content

Commit c1c6e99

Browse files
committedMay 2, 2016
rebasing
Note that this whole PR is a [breaking-change] for clients of the Compiler API.
1 parent aaf56d7 commit c1c6e99

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed
 

‎src/librustc_driver/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,6 @@ impl<'a> CompilerCalls<'a> for RustcDefaultCalls {
462462
};
463463
control.after_write_deps.callback = box move |state| {
464464
pretty::print_after_write_deps(state.session,
465-
state.cstore.unwrap(),
466465
state.ast_map.unwrap(),
467466
state.input,
468467
&state.expanded_crate.take().unwrap(),

‎src/librustc_driver/pretty.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ use rustc::session::config::Input;
2626
use rustc_borrowck as borrowck;
2727
use rustc_borrowck::graphviz as borrowck_dot;
2828
use rustc_resolve as resolve;
29-
use rustc_metadata::cstore::CStore;
30-
use rustc_metadata::creader::LocalCrateReader;
3129

3230
use rustc_mir::pretty::write_mir_pretty;
3331
use rustc_mir::graphviz::write_mir_graphviz;
@@ -42,7 +40,6 @@ use syntax::util::small_vector::SmallVector;
4240

4341
use graphviz as dot;
4442

45-
use std::cell::RefCell;
4643
use std::fs::File;
4744
use std::io::{self, Write};
4845
use std::iter;
@@ -813,7 +810,6 @@ pub fn print_after_parsing(sess: &Session,
813810
}
814811

815812
pub 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.
919915
fn 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

Comments
 (0)
Please sign in to comment.