Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std.encoding.sanitize should be usable in @safe #10545

Open
dlangBugzillaToGithub opened this issue Feb 12, 2024 · 0 comments
Open

std.encoding.sanitize should be usable in @safe #10545

dlangBugzillaToGithub opened this issue Feb 12, 2024 · 0 comments
Labels
Arch:x86 Issues specific to x86 Severity:Enhancement

Comments

@dlangBugzillaToGithub
Copy link

forestix reported this on 2024-02-12T22:20:26Z

Transfered from https://issues.dlang.org/show_bug.cgi?id=24391

Description

The offending line:

> return cast(immutable(E)[])array[0 .. offset];

ldc2 says:

Error: cast from `char[]` to `string` not allowed in safe code
@LightBender LightBender removed the P1 label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arch:x86 Issues specific to x86 Severity:Enhancement
Projects
None yet
Development

No branches or pull requests

2 participants