diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-03-22 15:48:28 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-22 15:48:28 +0100 |
| commit | 0bc5fc99d3e009a51aa2daa1373b1774252fb443 (patch) | |
| tree | b7d3980392c41e54b0365014241c798417106f9b /src/rustllvm/RustWrapper.cpp | |
| parent | 94d43d656665e59abc10c7c22a3194685e7cc605 (diff) | |
| parent | 586c7e3907738938db7a6730fd70d7125f5925fa (diff) | |
| download | rust-0bc5fc99d3e009a51aa2daa1373b1774252fb443.tar.gz rust-0bc5fc99d3e009a51aa2daa1373b1774252fb443.zip | |
Rollup merge of #68099 - lukaslueg:into_raw_unsafe, r=LukasKalbertodt
Amend Rc/Arc::from_raw() docs regarding unsafety [This](https://stackoverflow.com/questions/59671647/is-it-safe-to-clone-a-type-erased-arc-via-raw-pointer) question on SO boils down to "is it safe to `::from_raw()` a `Rc<T>`/`Arc<T>` using a dummy `T` even if `T` is never dereferenced via the new `Rc`/`Arc`?". It almost never is. This PR amends the docs of `from_raw()` regarding this point.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
