Skip to content

Commit 4a57b80

Browse files
committed
Remove a low-value local variable.
1 parent 94c9075 commit 4a57b80

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
@@ -267,13 +267,12 @@ impl Linker {
267267

268268
sess.compile_status()?;
269269

270-
let dep_graph = self.dep_graph;
271270
sess.time("serialize_work_products", || {
272-
rustc_incremental::save_work_product_index(sess, &dep_graph, work_products)
271+
rustc_incremental::save_work_product_index(sess, &self.dep_graph, work_products)
273272
});
274273

275274
let prof = sess.prof.clone();
276-
prof.generic_activity("drop_dep_graph").run(move || drop(dep_graph));
275+
prof.generic_activity("drop_dep_graph").run(move || drop(self.dep_graph));
277276

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

0 commit comments

Comments
 (0)