Skip to content

Commit f1b8add

Browse files
committed
---
yaml --- r: 228686 b: refs/heads/try c: 6b49f4d h: refs/heads/master v: v3
1 parent 84fcaf1 commit f1b8add

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
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: 1e2677be72e2b0c180ed1be38d1868b4829ad530
4+
refs/heads/try: 6b49f4ded7c92da2323043bcda59886c881023e9
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/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)