Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary allocation, update API name for starting the rustc dr... #17590

Merged
merged 1 commit into from
Oct 2, 2014
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
7 changes: 2 additions & 5 deletions src/librustc/driver/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,13 @@ use syntax::diagnostics;

use getopts;


pub mod driver;
pub mod session;
pub mod config;
pub mod pretty;


pub fn main_args(args: &[String]) -> int {
let owned_args = args.to_vec();
monitor(proc() run_compiler(owned_args.as_slice()));
pub fn run(args: Vec<String>) -> int {
monitor(proc() run_compiler(args.as_slice()));
0
}

Expand Down
3 changes: 2 additions & 1 deletion src/librustc/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,5 +149,6 @@ mod rustc {

pub fn main() {
let args = std::os::args();
std::os::set_exit_status(driver::main_args(args.as_slice()));
let result = driver::run(args);
std::os::set_exit_status(result);
}