Fix nothrow inference for runTask.
This commit is contained in:
parent
b995bdaa72
commit
897c43051f
|
@ -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;
|
||||||
|
|
|
@ -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];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue