new region inference, seperate infer into modules, improve error msgs

Fixes #2806
Fixes #3197
Fixes #3138
This commit is contained in:
Niko Matsakis
2012-08-13 15:06:13 -07:00
parent 3b09c3deaa
commit 8ee79c79aa
50 changed files with 3866 additions and 2563 deletions

View File

@@ -1187,7 +1187,9 @@ fn spawn_raw(+opts: TaskOpts, +f: fn~()) {
};
if result {
// Unwinding function in case any ancestral enlisting fails
let bail = |tg| { leave_taskgroup(tg, child, false) };
let bail = |tg: TaskGroupInner| {
leave_taskgroup(tg, child, false)
};
// Attempt to join every ancestor group.
result =
for each_ancestor(ancestors, some(bail)) |ancestor_tg| {