Skip to content

Commit fbb688b

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 169895 b: refs/heads/auto c: 79af277 h: refs/heads/master i: 169893: a4c8691 169891: a4c8206 169887: cbc2406 v: v3
1 parent c816051 commit fbb688b

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
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: ab0c7af376c612374226c83d82e6387eb7cc9666
13+
refs/heads/auto: 79af27762324f28ab13335864111071b8708ea39
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

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