]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_typeck/src/check/upvar.rs
Rollup merge of #98916 - ChrisDenton:hiberfil.sys, r=thomcc
[rust.git] / compiler / rustc_typeck / src / check / upvar.rs
index 08890f299672237b4aaf4e586b5e238ea0b7a78b..3bd3e2d80917d2bc16d46147b706a88122f3ebba 100644 (file)
@@ -315,7 +315,7 @@ fn analyze_closure(
             .collect();
         self.typeck_results.borrow_mut().closure_fake_reads.insert(closure_def_id, fake_reads);
 
-        if self.tcx.sess.opts.debugging_opts.profile_closures {
+        if self.tcx.sess.opts.unstable_opts.profile_closures {
             self.typeck_results.borrow_mut().closure_size_eval.insert(
                 closure_def_id,
                 ClosureSizeProfileData {