]> git.proxmox.com Git - rustc.git/blobdiff - src/librustc_typeck/check/upvar.rs
New upstream version 1.12.0+dfsg1
[rustc.git] / src / librustc_typeck / check / upvar.rs
index 71490423f73f2d0a510cac3b9bf01ac4c14c6751..030491b521d95679e38b0f72cfdc975a7ba468ae 100644 (file)
@@ -501,7 +501,7 @@ impl<'a, 'gcx, 'tcx, 'v> Visitor<'v> for AdjustBorrowKind<'a, 'gcx, 'tcx> {
                 span: Span,
                 id: ast::NodeId)
     {
-        intravisit::walk_fn(self, fn_kind, decl, body, span);
+        intravisit::walk_fn(self, fn_kind, decl, body, span, id);
         self.analyze_closure(id, span, decl, body);
     }
 }