https://issues.dlang.org/show_bug.cgi?id=18925
Issue ID: 18925
Summary: core.internal.hash auto-hash for structs of scalar
fields should be `@safe`
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: druntime
Assignee: [email protected]
Reporter: [email protected]
Currently doesn't work:
@safe unittest
{
import core.internal.hash : hashOf;
static struct S { int a; int b; }
auto h = hashOf(S.init);
}
--
