about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2025-06-01 00:35:50 +0200
committerGitHub <noreply@github.com>2025-06-01 00:35:50 +0200
commitfa494d652da0c732a8efcc62e3e1ed93da4824a1 (patch)
tree691e07b5f5fe8b6d24f6d6fb9a1199723badd7c9 /compiler/rustc_codegen_llvm/src
parent241ec137fb7c2134ab24d326cd482b77a4380ba5 (diff)
parentcea87ecad6360e06abbead84d9ffdf78c01db7d1 (diff)
downloadrust-fa494d652da0c732a8efcc62e3e1ed93da4824a1.tar.gz
rust-fa494d652da0c732a8efcc62e3e1ed93da4824a1.zip
Rollup merge of #141215 - xizheyin:issue-141138, r=workingjubilee
std: clarify Clone trait documentation about duplication semantics

Closes rust-lang/rust#141138

The change explicitly explains that cloning behavior varies by type and clarifies that smart pointers (`Arc`, `Rc`) share the same underlying data. I've also added an example of cloning to Arc.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions