Skip to content

Commit 37d93a2

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 171249 b: refs/heads/batch c: 79af277 h: refs/heads/master i: 171247: 4e116a6 v: v3
1 parent 3ea6803 commit 37d93a2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2929
refs/heads/issue-18208-method-dispatch-2: 9e1eae4fb9b6527315b4441cf8a0f5ca911d1671
3030
refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
32-
refs/heads/batch: ab0c7af376c612374226c83d82e6387eb7cc9666
32+
refs/heads/batch: 79af27762324f28ab13335864111071b8708ea39
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 496dc4eae7de9d14cd49511a9acfbf5f11ae6c3f
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928

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