Skip to content

Commit 64cca3a

Browse files
SiegeLordExSiegeLord
authored andcommitted
Rename after_ast to after_hir_lowering.
1 parent 105aa8c commit 64cca3a

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

src/librustc_driver/driver.rs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,9 @@ pub fn compile_input(sess: &Session,
188188

189189
{
190190
let _ignore = hir_map.dep_graph.in_ignore();
191-
controller_entry_point!(after_ast,
191+
controller_entry_point!(after_hir_lowering,
192192
sess,
193-
CompileState::state_after_ast(input,
193+
CompileState::state_after_hir_lowering(input,
194194
sess,
195195
outdir,
196196
output,
@@ -321,7 +321,7 @@ pub struct CompileController<'a> {
321321
pub after_parse: PhaseController<'a>,
322322
pub after_expand: PhaseController<'a>,
323323
pub after_write_deps: PhaseController<'a>,
324-
pub after_ast: PhaseController<'a>,
324+
pub after_hir_lowering: PhaseController<'a>,
325325
pub after_analysis: PhaseController<'a>,
326326
pub after_llvm: PhaseController<'a>,
327327

@@ -334,7 +334,7 @@ impl<'a> CompileController<'a> {
334334
after_parse: PhaseController::basic(),
335335
after_expand: PhaseController::basic(),
336336
after_write_deps: PhaseController::basic(),
337-
after_ast: PhaseController::basic(),
337+
after_hir_lowering: PhaseController::basic(),
338338
after_analysis: PhaseController::basic(),
339339
after_llvm: PhaseController::basic(),
340340
make_glob_map: resolve::MakeGlobMap::No,
@@ -458,19 +458,19 @@ impl<'a, 'b, 'ast, 'tcx> CompileState<'a, 'b, 'ast, 'tcx> {
458458
}
459459
}
460460

461-
fn state_after_ast(input: &'a Input,
462-
session: &'ast Session,
463-
out_dir: &'a Option<PathBuf>,
464-
out_file: &'a Option<PathBuf>,
465-
arenas: &'ast ty::CtxtArenas<'ast>,
466-
cstore: &'a CStore,
467-
hir_map: &'a hir_map::Map<'ast>,
468-
analysis: &'a ty::CrateAnalysis,
469-
resolutions: &'a Resolutions,
470-
krate: &'a ast::Crate,
471-
hir_crate: &'a hir::Crate,
472-
crate_name: &'a str)
473-
-> CompileState<'a, 'b, 'ast, 'tcx> {
461+
fn state_after_hir_lowering(input: &'a Input,
462+
session: &'ast Session,
463+
out_dir: &'a Option<PathBuf>,
464+
out_file: &'a Option<PathBuf>,
465+
arenas: &'ast ty::CtxtArenas<'ast>,
466+
cstore: &'a CStore,
467+
hir_map: &'a hir_map::Map<'ast>,
468+
analysis: &'a ty::CrateAnalysis,
469+
resolutions: &'a Resolutions,
470+
krate: &'a ast::Crate,
471+
hir_crate: &'a hir::Crate,
472+
crate_name: &'a str)
473+
-> CompileState<'a, 'b, 'ast, 'tcx> {
474474
CompileState {
475475
crate_name: Some(crate_name),
476476
arenas: Some(arenas),

src/librustc_driver/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,12 +461,12 @@ impl<'a> CompilerCalls<'a> for RustcDefaultCalls {
461461

462462
if let Some((ppm, opt_uii)) = parse_pretty(sess, matches) {
463463
if ppm.needs_ast_map(&opt_uii) {
464-
control.after_ast.stop = Compilation::Stop;
464+
control.after_hir_lowering.stop = Compilation::Stop;
465465

466466
control.after_parse.callback = box move |state| {
467467
state.krate = Some(pretty::fold_crate(state.krate.take().unwrap(), ppm));
468468
};
469-
control.after_ast.callback = box move |state| {
469+
control.after_hir_lowering.callback = box move |state| {
470470
pretty::print_after_ast(state.session,
471471
state.ast_map.unwrap(),
472472
state.analysis.unwrap(),

0 commit comments

Comments
 (0)