Skip to content

Commit 1a2428f

Browse files
committed
Auto merge of #39402 - king6cong:master, r=nrc
comment rewording and argument unifying
2 parents d5f5474 + 701c32e commit 1a2428f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/librustc_driver/driver.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -741,15 +741,15 @@ pub fn phase_2_configure_and_expand<F>(sess: &Session,
741741
"checking for inline asm in case the target doesn't support it",
742742
|| no_asm::check_crate(sess, &krate));
743743

744-
time(sess.time_passes(),
744+
time(time_passes,
745745
"early lint checks",
746746
|| lint::check_ast_crate(sess, &krate));
747747

748-
time(sess.time_passes(),
748+
time(time_passes,
749749
"AST validation",
750750
|| ast_validation::check_crate(sess, &krate));
751751

752-
time(sess.time_passes(), "name resolution", || -> CompileResult {
752+
time(time_passes, "name resolution", || -> CompileResult {
753753
// Since import resolution will eventually happen in expansion,
754754
// don't perform `after_expand` until after import resolution.
755755
after_expand(&krate)?;
@@ -770,7 +770,7 @@ pub fn phase_2_configure_and_expand<F>(sess: &Session,
770770
})?;
771771

772772
// Lower ast -> hir.
773-
let hir_forest = time(sess.time_passes(), "lowering ast -> hir", || {
773+
let hir_forest = time(time_passes, "lowering ast -> hir", || {
774774
let hir_crate = lower_crate(sess, &krate, &mut resolver);
775775

776776
if sess.opts.debugging_opts.hir_stats {
@@ -780,7 +780,7 @@ pub fn phase_2_configure_and_expand<F>(sess: &Session,
780780
hir_map::Forest::new(hir_crate, &sess.dep_graph)
781781
});
782782

783-
// Discard hygiene data, which isn't required past lowering to HIR.
783+
// Discard hygiene data, which isn't required after lowering to HIR.
784784
if !keep_hygiene_data(sess) {
785785
syntax::ext::hygiene::reset_hygiene_data();
786786
}

0 commit comments

Comments
 (0)