Skip to content

Commit 79af277

Browse files
author
Jorge Aparicio
committed
address Niko's comments
1 parent ab0c7af commit 79af277

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_typeck/check/closure.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ pub fn check_expr_closure<'a,'tcx>(fcx: &FnCtxt<'a,'tcx>,
4545
// that, otherwise we'll fall back to boxed closures.
4646
match expected_sig_and_kind {
4747
None => { // don't have information about the kind, request explicit annotation
48-
// HACK We still need to typeck the body, so assume `FnMut` kind just for that
48+
// NB We still need to typeck the body, so assume `FnMut` kind just for that
4949
let kind = ty::FnMutUnboxedClosureKind;
5050

5151
check_unboxed_closure(fcx, expr, kind, decl, body, None);
5252

5353
fcx.ccx.tcx.sess.span_err(
5454
expr.span,
55-
"Can't infer the \"kind\" of the closure, explicitly annotate it. e.g. \
55+
"can't infer the \"kind\" of the closure, explicitly annotate it. e.g. \
5656
`|&:| {}`");
5757
},
5858
Some((sig, kind)) => {

0 commit comments

Comments
 (0)