Skip to content

Commit

Permalink
Scrape out remaining bits of -Zast
Browse files Browse the repository at this point in the history
  • Loading branch information
spinda committed Jan 26, 2017
1 parent f205a0a commit 467e183
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
4 changes: 0 additions & 4 deletions src/librustc/session/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -862,10 +862,6 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
"print the arguments passed to the linker"),
print_llvm_passes: bool = (false, parse_bool, [UNTRACKED],
"prints the llvm optimization passes being run"),
ast: bool = (false, parse_bool, [UNTRACKED],
"pretty-print the AST and halt"),
ast_noexpand: bool = (false, parse_bool, [UNTRACKED],
"pretty-print the pre-expansion AST and halt"),
ast_json: bool = (false, parse_bool, [UNTRACKED],
"print the AST as JSON and halt"),
ast_json_noexpand: bool = (false, parse_bool, [UNTRACKED],
Expand Down
8 changes: 0 additions & 8 deletions src/librustc_driver/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,10 +501,6 @@ pub fn phase_1_parse_input<'a>(sess: &'a Session, input: &Input) -> PResult<'a,

sess.diagnostic().set_continue_after_error(true);

if sess.opts.debugging_opts.ast_noexpand {
println!("{:#?}", &krate);
}

if sess.opts.debugging_opts.ast_json_noexpand {
println!("{}", json::as_json(&krate));
}
Expand Down Expand Up @@ -737,10 +733,6 @@ pub fn phase_2_configure_and_expand<F>(sess: &Session,
hir_stats::print_ast_stats(&krate, "POST EXPANSION AST STATS");
}

if sess.opts.debugging_opts.ast {
println!("{:#?}", &krate);
}

if sess.opts.debugging_opts.ast_json {
println!("{}", json::as_json(&krate));
}
Expand Down
2 changes: 0 additions & 2 deletions src/librustc_driver/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -484,13 +484,11 @@ impl<'a> CompilerCalls<'a> for RustcDefaultCalls {

if sess.opts.debugging_opts.parse_only ||
sess.opts.debugging_opts.show_span.is_some() ||
sess.opts.debugging_opts.ast_noexpand ||
sess.opts.debugging_opts.ast_json_noexpand {
control.after_parse.stop = Compilation::Stop;
}

if sess.opts.debugging_opts.no_analysis ||
sess.opts.debugging_opts.ast ||
sess.opts.debugging_opts.ast_json {
control.after_hir_lowering.stop = Compilation::Stop;
}
Expand Down

0 comments on commit 467e183

Please sign in to comment.