Skip to content

Commit 3294e35

Browse files
committed
Remove a low-value local variable.
1 parent 45c5169 commit 3294e35

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

compiler/rustc_interface/src/queries.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,13 +270,12 @@ impl Linker {
270270

271271
sess.compile_status()?;
272272

273-
let dep_graph = self.dep_graph;
274273
sess.time("serialize_work_products", || {
275-
rustc_incremental::save_work_product_index(sess, &dep_graph, work_products)
274+
rustc_incremental::save_work_product_index(sess, &self.dep_graph, work_products)
276275
});
277276

278277
let prof = sess.prof.clone();
279-
prof.generic_activity("drop_dep_graph").run(move || drop(dep_graph));
278+
prof.generic_activity("drop_dep_graph").run(move || drop(self.dep_graph));
280279

281280
// Now that we won't touch anything in the incremental compilation directory
282281
// any more, we can finalize it (which involves renaming it)

0 commit comments

Comments
 (0)