Add early returns to rustc main on non-compiling paths.
This commit is contained in:
parent
dc1b34288c
commit
9491dc3e61
1 changed files with 2 additions and 0 deletions
|
|
@ -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]) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue