diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-02-04 18:42:13 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-04 18:42:13 +0100 |
| commit | 6f03bd09ff6ef6402b68b32485f0d25e7f6c0c01 (patch) | |
| tree | d63552075a2c9c2962cfea48482bf25911a20696 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 2fe9a32ed209b93ddd08cab174dfffefc1409a9c (diff) | |
| parent | f5e6d16d000e0aa73833de909de44e8dcc8589ed (diff) | |
| download | rust-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
