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 {
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 }
You can’t perform that action at this time.
0 commit comments