Skip to content

Commit ff90f28

Browse files
committed
---
yaml --- r: 178572 b: refs/heads/try c: e778ea4 h: refs/heads/master v: v3
1 parent e9d5fa1 commit ff90f28

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 336c8d2e9c6b276b162bdb3edd43706372e6eddd
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 474b324eda10440d6568ef872a7307d38e7de95b
5-
refs/heads/try: 5a39a0d266705d594ff31b8e386bc8c1e54ab019
5+
refs/heads/try: e778ea40701751ca15b19a8983949573ea9e3a07
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/src/librustc_typeck/check/closure.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ pub fn check_expr_closure<'a,'tcx>(fcx: &FnCtxt<'a,'tcx>,
4242
// If users didn't specify what sort of closure they want,
4343
// examine the expected type. For now, if we see explicit
4444
// evidence than an unboxed closure is desired, we'll use
45-
// that, otherwise we'll error, requesting an annotation.
45+
// that. Otherwise, we leave it unspecified, to be filled
46+
// in by upvar inference.
4647
match expected_sig_and_kind {
4748
None => { // don't have information about the kind, request explicit annotation
4849
check_closure(fcx, expr, None, decl, body, None);

branches/try/src/librustc_typeck/check/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ pub struct Inherited<'a, 'tcx: 'a> {
177177
// we may not have decided yet whether `c` is a `Fn`, `FnMut`, or
178178
// `FnOnce` closure. In that case, we defer full resolution of the
179179
// call until upvar inference can kick in and make the
180-
// decision. We keep these deferred resolutions sorted by the
180+
// decision. We keep these deferred resolutions grouped by the
181181
// def-id of the closure, so that once we decide, we can easily go
182182
// back and process them.
183183
deferred_call_resolutions: RefCell<DefIdMap<Vec<DeferredCallResolutionHandler<'tcx>>>>,

0 commit comments

Comments
 (0)