about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-11-17 09:19:11 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-11-17 17:30:40 +1100
commit4a57b80f3fbedf86992d15016ea8f14b662b56f3 (patch)
tree6b2e72148a1d9442dd35c45bb1dbcc1d70f6a698 /compiler/rustc_interface/src
parent94c9075b278660c72031b7b34f19f0f9e6b7f2e5 (diff)
downloadrust-4a57b80f3fbedf86992d15016ea8f14b662b56f3.tar.gz
rust-4a57b80f3fbedf86992d15016ea8f14b662b56f3.zip
Remove a low-value local variable.
Diffstat (limited to 'compiler/rustc_interface/src')
-rw-r--r--compiler/rustc_interface/src/queries.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/rustc_interface/src/queries.rs b/compiler/rustc_interface/src/queries.rs
index 7d31fd8cb5c..9762e924cc4 100644
--- a/compiler/rustc_interface/src/queries.rs
+++ b/compiler/rustc_interface/src/queries.rs
@@ -267,13 +267,12 @@ impl Linker {
 
         sess.compile_status()?;
 
-        let dep_graph = self.dep_graph;
         sess.time("serialize_work_products", || {
-            rustc_incremental::save_work_product_index(sess, &dep_graph, work_products)
+            rustc_incremental::save_work_product_index(sess, &self.dep_graph, work_products)
         });
 
         let prof = sess.prof.clone();
-        prof.generic_activity("drop_dep_graph").run(move || drop(dep_graph));
+        prof.generic_activity("drop_dep_graph").run(move || drop(self.dep_graph));
 
         // Now that we won't touch anything in the incremental compilation directory
         // any more, we can finalize it (which involves renaming it)