]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_typeck/src/check/upvar.rs
Add initial set of testcases for RFC 2229
[rust.git] / compiler / rustc_typeck / src / check / upvar.rs
index a28744c2ece755645c54345f5ab34dd01f1a68da..9e4e6565361528d078c3b1a64ddbba3318bf9be5 100644 (file)
@@ -169,6 +169,13 @@ fn analyze_closure(
         )
         .consume_body(body);
 
+        log_capture_analysis!(
+            self,
+            closure_def_id,
+            "capture information: {:#?}",
+            delegate.capture_information
+        );
+
         if let Some(closure_substs) = infer_kind {
             // Unify the (as yet unbound) type variable in the closure
             // substs with the kind we inferred.