diff options
| author | Sebastian Dröge <sebastian@centricular.com> | 2018-12-07 16:18:38 +0200 |
|---|---|---|
| committer | Sebastian Dröge <sebastian@centricular.com> | 2018-12-13 11:07:58 +0200 |
| commit | 5eafae22ceb0e4fae835a5eb7518a55e75061e20 (patch) | |
| tree | f6622fb7b5d7e18166cfb1521517d7ac9a1f39f8 /src/rustllvm/RustWrapper.cpp | |
| parent | dd8fc7dc06dea00afbd365468cf4804f68a3531c (diff) | |
| download | rust-5eafae22ceb0e4fae835a5eb7518a55e75061e20.tar.gz rust-5eafae22ceb0e4fae835a5eb7518a55e75061e20.zip | |
Remove confusing comment about ideally using `!` for `c_void`
Using `!` for `c_void` would have the problem that pointers and potentially references to an uninhabited type would be created, and at least for references this is UB. Also document in addition that newtype wrappers around `c_void` are not recommended for representing opaque types (as a workaround for `extern type` not being stable) but instead refer to the Nomicon.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
