Skip to content

Commit ec3db19

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 168870 b: refs/heads/snap-stage3 c: 79af277 h: refs/heads/master v: v3
1 parent 00e0547 commit ec3db19

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
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 5e21e17d9638d14af41e27e5ca9a21c8a1bc0170
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: ab0c7af376c612374226c83d82e6387eb7cc9666
4+
refs/heads/snap-stage3: 79af27762324f28ab13335864111071b8708ea39
55
refs/heads/try: 5204084bd2e46af7cc6e0147430e44dd0d657bbb
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/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)