File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/rustc_interface/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ impl Compiler {
210
210
F : for < ' tcx > FnOnce ( & ' tcx Queries < ' tcx > ) -> T ,
211
211
{
212
212
// Must declare `_timer` first so that it is dropped after `queries`.
213
- let mut _timer = None ;
213
+ let _timer;
214
214
let queries = Queries :: new ( self ) ;
215
215
let ret = f ( & queries) ;
216
216
@@ -233,7 +233,7 @@ impl Compiler {
233
233
234
234
// The timer's lifetime spans the dropping of `queries`, which contains
235
235
// the global context.
236
- _timer = Some ( self . sess . timer ( "free_global_ctxt" ) ) ;
236
+ _timer = self . sess . timer ( "free_global_ctxt" ) ;
237
237
if let Err ( ( path, error) ) = queries. finish ( ) {
238
238
self . sess . dcx ( ) . emit_fatal ( errors:: FailedWritingFile { path : & path, error } ) ;
239
239
}
You can’t perform that action at this time.
0 commit comments