about summary refs log tree commit diff
path: root/tests/codegen-llvm/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorxizheyin <xizheyin@smail.nju.edu.cn>2025-06-04 01:39:02 +0800
committerxizheyin <xizheyin@smail.nju.edu.cn>2025-06-04 01:39:02 +0800
commit871397342c9da1cdcee3c851a2c93b84aa512fba (patch)
tree9ea7949e9fb3a628bef3fed7d9ae0facd8645ee5 /tests/codegen-llvm/src-hash-algorithm/src-hash-algorithm-sha1.rs
parent91fad92585b2dafc52a074e502b2a6c1f093ca35 (diff)
downloadrust-871397342c9da1cdcee3c851a2c93b84aa512fba.tar.gz
rust-871397342c9da1cdcee3c851a2c93b84aa512fba.zip
std: simplify `NonNull` variance documentation
Streamlined the explanation of covariance for `NonNull<T>`,
focusing on practical usage and reducing scary explanation.
Added a concise example for cases where invariance is required,
showing how to use `PhantomData<Cell<T>>

Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
Diffstat (limited to 'tests/codegen-llvm/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions