Skip to content
This repository has been archived by the owner on Mar 1, 2019. It is now read-only.

Rustup to rustc 1.25.0-nightly (97520ccb1 2018-01-21) #5

Merged
merged 1 commit into from
Jan 22, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 10 additions & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ extern crate getopts;
extern crate rustc;
extern crate rustc_driver;
extern crate rustc_errors;
extern crate rustc_trans_utils;
extern crate syntax;

use rustc::middle::cstore::CrateStore;
use rustc::session::Session;
use rustc::session::config::{self, ErrorOutputType, Input};
use rustc_trans_utils::trans_crate::TransCrate;
use rustc_driver::driver::CompileController;
use rustc_driver::{run_compiler, CompilerCalls, RustcDefaultCalls, Compilation, enable_save_analysis, get_args};
use syntax::ast;
Expand Down Expand Up @@ -43,14 +45,15 @@ impl<'a> CompilerCalls<'a> for ShimCalls {
}

fn late_callback(&mut self,
a: &getopts::Matches,
b: &Session,
c: &CrateStore,
d: &Input,
e: &Option<PathBuf>,
f: &Option<PathBuf>)
a: &TransCrate,
b: &getopts::Matches,
c: &Session,
d: &CrateStore,
e: &Input,
f: &Option<PathBuf>,
g: &Option<PathBuf>)
-> Compilation {
RustcDefaultCalls.late_callback(a, b, c, d, e, f)
RustcDefaultCalls.late_callback(a, b, c, d, e, f, g)
}

fn some_input(&mut self,
Expand Down