Skip to content

Commit ec2d1b0

Browse files
committed
Minor change
1 parent bd2ff51 commit ec2d1b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_interface/src/queries.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ impl Compiler {
210210
F: for<'tcx> FnOnce(&'tcx Queries<'tcx>) -> T,
211211
{
212212
// Must declare `_timer` first so that it is dropped after `queries`.
213-
let mut _timer = None;
213+
let _timer;
214214
let queries = Queries::new(self);
215215
let ret = f(&queries);
216216

@@ -233,7 +233,7 @@ impl Compiler {
233233

234234
// The timer's lifetime spans the dropping of `queries`, which contains
235235
// the global context.
236-
_timer = Some(self.sess.timer("free_global_ctxt"));
236+
_timer = self.sess.timer("free_global_ctxt");
237237
if let Err((path, error)) = queries.finish() {
238238
self.sess.dcx().emit_fatal(errors::FailedWritingFile { path: &path, error });
239239
}

0 commit comments

Comments
 (0)