]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #34356 - matklad:cstr-docs, r=GuillaumeGomez
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Tue, 21 Jun 2016 21:54:28 +0000 (23:54 +0200)
committerGitHub <noreply@github.com>
Tue, 21 Jun 2016 21:54:28 +0000 (23:54 +0200)
Document `CStr::as_ptr` dangers.

r? @steveklabnik

Hi! I've tried to document `CString::new("hello").unwrap().as_ptr()` footgun. Related [RFC] and the original [discussion].

[RFC]: https://github.com/rust-lang/rfcs/pull/1642
[discussion]: https://users.rust-lang.org/t/you-should-stop-telling-people-that-safe-rust-is-always-safe/6094


Trivial merge