about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-02-04 18:42:13 +0100
committerGitHub <noreply@github.com>2022-02-04 18:42:13 +0100
commit6f03bd09ff6ef6402b68b32485f0d25e7f6c0c01 (patch)
treed63552075a2c9c2962cfea48482bf25911a20696 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent2fe9a32ed209b93ddd08cab174dfffefc1409a9c (diff)
parentf5e6d16d000e0aa73833de909de44e8dcc8589ed (diff)
downloadrust-6f03bd09ff6ef6402b68b32485f0d25e7f6c0c01.tar.gz
rust-6f03bd09ff6ef6402b68b32485f0d25e7f6c0c01.zip
Rollup merge of #91589 - derekdreery:arc_unwrap_or_clone, r=m-ou-se
impl `Arc::unwrap_or_clone`

The function gets the inner value, cloning only if necessary. The conversation started on [`irlo`](https://internals.rust-lang.org/t/arc-into-inner/15707). If the reviewer think the PR has potential to be merged, and does not need an RFC, then I will create the corresponding tracking issues and update the PR.

## Alternative names

 - `into_inner`
 - `make_owned`
 - `make_unique`
 - `take_*` (`take_inner`?)
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions