From 9491dc3e61b114eda06a61bbec76742237017f49 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Thu, 26 May 2011 15:22:08 +0000 Subject: [PATCH] Add early returns to rustc main on non-compiling paths. --- src/comp/driver/rustc.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/comp/driver/rustc.rs b/src/comp/driver/rustc.rs index 7dcf41b00e52..ee77330186cb 100644 --- a/src/comp/driver/rustc.rs +++ b/src/comp/driver/rustc.rs @@ -373,8 +373,10 @@ fn main(vec[str] args) { auto ls = opt_present(match, "ls"); if (pretty || typed_pretty) { pretty_print_input(sess, env, ifile, typed_pretty); + ret; } else if (ls) { front::creader::list_file_metadata(ifile, std::io::stdout()); + ret; } else { alt (output_file) { case (none[str]) {