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)()
|
||||
@safe nothrow {
|
||||
{
|
||||
import std.typecons : Tuple, tuple;
|
||||
|
||||
TaskFiber f;
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue