Skip to content

Commit 467e183

Browse files
committed
Scrape out remaining bits of -Zast
1 parent f205a0a commit 467e183

File tree

3 files changed

+0
-14
lines changed

3 files changed

+0
-14
lines changed

src/librustc/session/config.rs

-4
Original file line numberDiff line numberDiff line change
@@ -862,10 +862,6 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
862862
"print the arguments passed to the linker"),
863863
print_llvm_passes: bool = (false, parse_bool, [UNTRACKED],
864864
"prints the llvm optimization passes being run"),
865-
ast: bool = (false, parse_bool, [UNTRACKED],
866-
"pretty-print the AST and halt"),
867-
ast_noexpand: bool = (false, parse_bool, [UNTRACKED],
868-
"pretty-print the pre-expansion AST and halt"),
869865
ast_json: bool = (false, parse_bool, [UNTRACKED],
870866
"print the AST as JSON and halt"),
871867
ast_json_noexpand: bool = (false, parse_bool, [UNTRACKED],

src/librustc_driver/driver.rs

-8
Original file line numberDiff line numberDiff line change
@@ -501,10 +501,6 @@ pub fn phase_1_parse_input<'a>(sess: &'a Session, input: &Input) -> PResult<'a,
501501

502502
sess.diagnostic().set_continue_after_error(true);
503503

504-
if sess.opts.debugging_opts.ast_noexpand {
505-
println!("{:#?}", &krate);
506-
}
507-
508504
if sess.opts.debugging_opts.ast_json_noexpand {
509505
println!("{}", json::as_json(&krate));
510506
}
@@ -737,10 +733,6 @@ pub fn phase_2_configure_and_expand<F>(sess: &Session,
737733
hir_stats::print_ast_stats(&krate, "POST EXPANSION AST STATS");
738734
}
739735

740-
if sess.opts.debugging_opts.ast {
741-
println!("{:#?}", &krate);
742-
}
743-
744736
if sess.opts.debugging_opts.ast_json {
745737
println!("{}", json::as_json(&krate));
746738
}

src/librustc_driver/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -484,13 +484,11 @@ impl<'a> CompilerCalls<'a> for RustcDefaultCalls {
484484

485485
if sess.opts.debugging_opts.parse_only ||
486486
sess.opts.debugging_opts.show_span.is_some() ||
487-
sess.opts.debugging_opts.ast_noexpand ||
488487
sess.opts.debugging_opts.ast_json_noexpand {
489488
control.after_parse.stop = Compilation::Stop;
490489
}
491490

492491
if sess.opts.debugging_opts.no_analysis ||
493-
sess.opts.debugging_opts.ast ||
494492
sess.opts.debugging_opts.ast_json {
495493
control.after_hir_lowering.stop = Compilation::Stop;
496494
}

0 commit comments

Comments
 (0)