diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2012-08-09 09:59:50 -0700 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2012-08-23 06:30:43 -0700 |
| commit | 511e7626aebe7a8a41c3be1c6fbd16c92e8f9386 (patch) | |
| tree | aea0830fc0eb00431d95c5b41550ee1e99e99da2 /src/libcore/task.rs | |
| parent | 8185ede1fad8312244e418b3c082f87386c40145 (diff) | |
| download | rust-511e7626aebe7a8a41c3be1c6fbd16c92e8f9386.tar.gz rust-511e7626aebe7a8a41c3be1c6fbd16c92e8f9386.zip | |
Infer variance of types with respect to the region parameter.
A similar approach could be used for type parameters. Fixes #2282.
Diffstat (limited to 'src/libcore/task.rs')
| -rw-r--r-- | src/libcore/task.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/task.rs b/src/libcore/task.rs index 85d1ee3da94..8d6453f0059 100644 --- a/src/libcore/task.rs +++ b/src/libcore/task.rs @@ -770,6 +770,7 @@ enum AncestorList = option<unsafe::Exclusive<AncestorNode>>; fn access_group<U>(x: &TaskGroupArc, blk: fn(TaskGroupInner) -> U) -> U { unsafe { x.with(blk) } } + #[inline(always)] fn access_ancestors<U>(x: &unsafe::Exclusive<AncestorNode>, blk: fn(x: &mut AncestorNode) -> U) -> U { |
