Skip to content

Commit 9491dc3

Browse files
committed
Add early returns to rustc main on non-compiling paths.
1 parent dc1b342 commit 9491dc3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/comp/driver/rustc.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,10 @@ fn main(vec[str] args) {
373373
auto ls = opt_present(match, "ls");
374374
if (pretty || typed_pretty) {
375375
pretty_print_input(sess, env, ifile, typed_pretty);
376+
ret;
376377
} else if (ls) {
377378
front::creader::list_file_metadata(ifile, std::io::stdout());
379+
ret;
378380
} else {
379381
alt (output_file) {
380382
case (none[str]) {

0 commit comments

Comments
 (0)