Skip to content

Commit e778ea4

Browse files
committed
Tweak comments per eddyb's suggestion.
1 parent 5a39a0d commit e778ea4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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);

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)