Skip to content

Commit 701c32e

Browse files
committed
unify time_passes argument passing
1 parent 986dd07 commit 701c32e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/librustc_driver/driver.rs

Lines changed: 4 additions & 4 deletions
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 {

0 commit comments

Comments
 (0)