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)()
@safe nothrow {
{
import std.typecons : Tuple, tuple;
TaskFiber f;

View file

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