Bug 24391 – std.encoding.sanitize should be usable in @safe

Status
NEW
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86
OS
All
Creation time
2024-02-12T22:20:26Z
Last change time
2024-12-01T16:42:20Z
Assigned to
No Owner
Creator
Forest
Blocks
18110
Moved to GitHub: phobos#10545 →

Comments

Comment #0 by forestix — 2024-02-12T22:20:26Z
The offending line: > return cast(immutable(E)[])array[0 .. offset]; ldc2 says: Error: cast from `char[]` to `string` not allowed in safe code
Comment #1 by robert.schadek — 2024-12-01T16:42:20Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10545 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB