about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/example/alloc_example.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-02-20 14:32:54 +0100
committerGitHub <noreply@github.com>2023-02-20 14:32:54 +0100
commitfde38f11742fd789c70c73ba11eca0c430546cfa (patch)
tree8d184e9d9cb8500e607819b988d0f4a0d5e84d47 /compiler/rustc_codegen_cranelift/example/alloc_example.rs
parente7eaed21d50d7bfb8d614d6ee7fcea940b39185d (diff)
parentfd8947095678c61c5cbc70509e053621baca282d (diff)
downloadrust-fde38f11742fd789c70c73ba11eca0c430546cfa.tar.gz
rust-fde38f11742fd789c70c73ba11eca0c430546cfa.zip
Rollup merge of #108124 - kornelski:cstr_c_char, r=thomcc
Document that CStr::as_ptr returns a type alias

Rustdoc resolves type aliases too eagerly #15823 which makes the [std re-export](https://doc.rust-lang.org/stable/std/ffi/struct.CStr.html#method.as_ptr) of `CStr::as_ptr` show `i8` instead of `c_char`. To work around this I've added info about `c_char` in the method's description.

BTW, I've also added a comment to what-not-to-do example in case someone copypasted it without reading the surrounding text.
Diffstat (limited to 'compiler/rustc_codegen_cranelift/example/alloc_example.rs')
0 files changed, 0 insertions, 0 deletions