Skip to content

Commit 3dc531a

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 170750 b: refs/heads/try c: 79af277 h: refs/heads/master v: v3
1 parent c26ec0c commit 3dc531a

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
@@ -2,7 +2,7 @@
22
refs/heads/master: 73a25f55ad748b4d3516417c711b99ce446591af
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 5b3cd3900ceda838f5798c30ab96ceb41f962534
5-
refs/heads/try: ab0c7af376c612374226c83d82e6387eb7cc9666
5+
refs/heads/try: 79af27762324f28ab13335864111071b8708ea39
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 & 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)