Skip to content

Commit e781457

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 163806 b: refs/heads/master c: 46272c1 h: refs/heads/master v: v3
1 parent b5510c3 commit e781457

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 1195708f64f34f6c402f98f5b551e2567be731c9
2+
refs/heads/master: 46272c18a2c69d447dc80b2cf89ea8a2e247b791
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 8443b09e361b96d1f9b7f45a65ed0d31c0e86e70
55
refs/heads/try: 20cbbffeefc1f35e2ea63afce7b42fbd79611d42

trunk/src/librustc_typeck/check/mod.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1938,11 +1938,13 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
19381938
infer::mk_subr(self.infcx(), origin, sub, sup)
19391939
}
19401940

1941-
pub fn type_error_message(&self,
1942-
sp: Span,
1943-
mk_msg: |String| -> String,
1944-
actual_ty: Ty<'tcx>,
1945-
err: Option<&ty::type_err<'tcx>>) {
1941+
pub fn type_error_message<M>(&self,
1942+
sp: Span,
1943+
mk_msg: M,
1944+
actual_ty: Ty<'tcx>,
1945+
err: Option<&ty::type_err<'tcx>>) where
1946+
M: FnOnce(String) -> String,
1947+
{
19461948
self.infcx().type_error_message(sp, mk_msg, actual_ty, err);
19471949
}
19481950

trunk/src/librustc_typeck/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ This API is completely unstable and subject to change.
7474
#![feature(default_type_params, globs, import_shadowing, macro_rules, phase, quote)]
7575
#![feature(slicing_syntax, unsafe_destructor)]
7676
#![feature(rustc_diagnostic_macros)]
77+
#![feature(unboxed_closures)]
7778
#![allow(non_camel_case_types)]
7879

7980
#[phase(plugin, link)] extern crate log;

0 commit comments

Comments
 (0)