-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Point out str::as_ptr is not nul-terminated #88463
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
5132d6d
to
5064106
Compare
The job Click to see the possible cause of the failure (guessed by this bot)
|
What's the policy on links from |
You can specify them as a path to the generated doc html file instead. grep for |
Ah, it seems the problem is that the link is included in the docs for |
This change seems reasonable to me. r=me when CI passes. |
I'll need a hint on how to solve the linking catch 22. It seems to me a direct link to |
ping from triage: @rustbot label: +S-waiting-on-author -S-waiting-on-review |
ping from triage: |
@JohnCSimon As in my previous comment: I'll need a hint on how to solve the intra-doc-linking issue that arose here: A direct link from |
@RalfJung @Manishearth can you help with this? |
@jyn514 I forgot what the current status of core-to-std intra links was, overall I'm fine with allowlisting this if we have to |
No, there's no way to link from core to std with intra-doc links. #74481 |
Ping from triage: @rustbot label: +S-inactive |
Adds a paragraph to the documentation of
str::as_ptr()
andstr::as_mut_ptr()
(and by extensionString
) pointing out that the pointer can not be used as a C-like string; trying to do so in FFI will result in hilarity.