about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2025-03-16 09:40:01 +0800
committerGitHub <noreply@github.com>2025-03-16 09:40:01 +0800
commit4946818306fd71d0b1990b53ea616ff3da57153a (patch)
treec134f89318cf6d9d344d69492b1d757161ac2f02 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent9f274ba3997030a2b7656755a6810fd26cb709f3 (diff)
parent96814ae55fd6201159ca00d79b79d9aae54cba0a (diff)
downloadrust-4946818306fd71d0b1990b53ea616ff3da57153a.tar.gz
rust-4946818306fd71d0b1990b53ea616ff3da57153a.zip
Rollup merge of #133055 - kpreid:clone-uninit-doc, r=Mark-Simulacrum
Expand `CloneToUninit` documentation.

* Clarify relationship to `dyn` after #133003.
* Add an example of using it with `dyn` as #133003 enabled.
* Replace parameter name `dst` with `dest` to avoid confusion between abbreviations for “DeSTination” and “Dynamically-Sized Type”.
* Add an example of implementing it.
* Add links to Rust Reference for the mentioned concepts.
* Mention that its method should rarely be called.
* Various small corrections.

Please review the `unsafe` code closely, as I am not an expert in the best possible ways to express these operations. (It might also be better to omit the implementation example entirely.)

cc `@zachs18` #126799
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions