← Back to index
|
Original Bugzilla link
Bug 18925 – core.internal.hash auto-hash for structs of scalar fields should be `@safe`
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-05-31T08:52:05Z
Last change time
2018-06-13T16:08:05Z
Assigned to
No Owner
Creator
Nathan S.
Comments
Comment #0
by n8sh.secondary — 2018-05-31T08:52:05Z
Currently doesn't work: @safe unittest { import core.internal.hash : hashOf; static struct S { int a; int b; } auto h = hashOf(S.init); }
Comment #1
by n8sh.secondary — 2018-05-31T08:58:21Z
Pull request:
https://github.com/dlang/druntime/pull/2200
Comment #2
by github-bugzilla — 2018-06-13T16:08:05Z
Commits pushed to master at
https://github.com/dlang/druntime
https://github.com/dlang/druntime/commit/436a706ddf088bd751d2aad9bbddc2c803c5a4da
Fix Issue 18925 - core.internal.hash auto-hash for structs of scalar fields should be `@safe`
https://github.com/dlang/druntime/commit/4138cfd0ba9aba3a3ded99a459f8fd597a53501b
Merge pull request #2200 from n8sh/core-hash-18925 Fix Issue 18925 - core.internal.hash auto-hash for structs of scalar fields should be `@safe`