Fix nothrow inference for runTask.

This commit is contained in:
Sönke Ludwig 2017-02-23 15:49:59 +01:00
parent b995bdaa72
commit 897c43051f
No known key found for this signature in database
GPG key ID: D95E8DB493EE314C
2 changed files with 5 additions and 5 deletions

View file

@ -341,7 +341,7 @@ auto runTaskScoped(FT, ARGS)(scope FT callable, ARGS args)
} }
package Task runTask_internal(alias TFI_SETUP)() package Task runTask_internal(alias TFI_SETUP)()
@safe nothrow { {
import std.typecons : Tuple, tuple; import std.typecons : Tuple, tuple;
TaskFiber f; TaskFiber f;

View file

@ -554,14 +554,14 @@ package struct TaskFuncInfo {
} }
void initCallable(C)() void initCallable(C)()
{ nothrow {
C cinit; static const C cinit;
this.callable[0 .. C.sizeof] = cast(void[])(&cinit)[0 .. 1]; this.callable[0 .. C.sizeof] = cast(void[])(&cinit)[0 .. 1];
} }
void initArgs(A)() void initArgs(A)()
{ nothrow {
A ainit; static const A ainit;
this.args[0 .. A.sizeof] = cast(void[])(&ainit)[0 .. 1]; this.args[0 .. A.sizeof] = cast(void[])(&ainit)[0 .. 1];
} }
} }