Add early returns to rustc main on non-compiling paths.

This commit is contained in:
Graydon Hoare 2011-05-26 15:22:08 +00:00
parent dc1b34288c
commit 9491dc3e61

View file

@ -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]) {