Skip to content

Commit 4126c74

Browse files
committed
Neaten up a timer.
1 parent f7d4eb9 commit 4126c74

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/rustc_interface/src/queries.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,6 @@ impl Compiler {
304304
where
305305
F: for<'tcx> FnOnce(&'tcx Queries<'tcx>) -> T,
306306
{
307-
let mut _timer = None;
308307
let queries = Queries::new(self);
309308
let ret = f(&queries);
310309

@@ -324,7 +323,7 @@ impl Compiler {
324323
.time("serialize_dep_graph", || gcx.enter(rustc_incremental::save_dep_graph));
325324
}
326325

327-
_timer = Some(self.session().timer("free_global_ctxt"));
326+
let _timer = self.session().timer("free_global_ctxt");
328327

329328
ret
330329
}

0 commit comments

Comments
 (0)