Skip to content

Commit d238b99

Browse files
committed
---
yaml --- r: 235757 b: refs/heads/stable c: 6b49f4d h: refs/heads/master i: 235755: 45a193c v: v3
1 parent 2efb908 commit d238b99

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: afae2ff723393b3ab4ccffef6ac7c6d1809e2da0
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: f859507de8c410b648d934d8f5ec1c52daac971d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 1e2677be72e2b0c180ed1be38d1868b4829ad530
32+
refs/heads/stable: 6b49f4ded7c92da2323043bcda59886c881023e9
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/src/librustc_typeck/check/upvar.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,8 @@ impl<'a,'tcx> AdjustBorrowKind<'a,'tcx> {
183183
* Analysis starting point.
184184
*/
185185

186-
self.visit_block(body);
186+
debug!("analyze_closure(id={:?}, body.id={:?})", id, body.id);
187187

188-
debug!("analyzing closure `{}` with fn body id `{}`", id, body.id);
189188

190189
let mut euv = euv::ExprUseVisitor::new(self, self.fcx.infcx());
191190
euv.walk_fn(decl, body);
@@ -485,8 +484,8 @@ impl<'a, 'tcx, 'v> Visitor<'v> for AdjustBorrowKind<'a, 'tcx> {
485484
// ignore nested fn items
486485
}
487486
visit::FkFnBlock => {
488-
self.analyze_closure(id, decl, body);
489487
visit::walk_fn(self, fn_kind, decl, body, span);
488+
self.analyze_closure(id, span, decl, body);
490489
}
491490
}
492491
}

0 commit comments

Comments
 (0)