about summary refs log tree commit diff
path: root/compiler/rustc_driver_impl/src/lib.rs
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-11-09 17:58:29 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-12-06 18:42:30 +0000
commitea6f5cbd2f8271b073d7902f43b12154b4685aca (patch)
tree290a85098897fb4c2c1f726f850818373e5de457 /compiler/rustc_driver_impl/src/lib.rs
parent84873f86138bd5a2f7de73ef3b746f419ed13b8b (diff)
downloadrust-ea6f5cbd2f8271b073d7902f43b12154b4685aca.tar.gz
rust-ea6f5cbd2f8271b073d7902f43b12154b4685aca.zip
Move some timers around
Diffstat (limited to 'compiler/rustc_driver_impl/src/lib.rs')
-rw-r--r--compiler/rustc_driver_impl/src/lib.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_driver_impl/src/lib.rs b/compiler/rustc_driver_impl/src/lib.rs
index b7d64f75bf3..ae69a2dc634 100644
--- a/compiler/rustc_driver_impl/src/lib.rs
+++ b/compiler/rustc_driver_impl/src/lib.rs
@@ -459,8 +459,7 @@ fn run_compiler(
         // Linking is done outside the `compiler.enter()` so that the
         // `GlobalCtxt` within `Queries` can be freed as early as possible.
         if let Some(linker) = linker {
-            let _timer = sess.timer("link");
-            linker.link(sess, codegen_backend)?
+            linker.link(sess, codegen_backend)?;
         }
 
         Ok(())