Issue 24391 - std.encoding.sanitize should be usable in @safe
Summary: std.encoding.sanitize should be usable in @safe
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: x86 All
: P1 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks: 18110
  Show dependency treegraph
 
Reported: 2024-02-12 22:20 UTC by Forest
Modified: 2024-12-01 16:42 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Forest 2024-02-12 22:20:26 UTC
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 dlangBugzillaToGithub 2024-12-01 16:42:20 UTC
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