about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/std_example.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-03-23 10:46:18 +0000
committerbors <bors@rust-lang.org>2024-03-23 10:46:18 +0000
commit12f7c17ae0e9137a4b470d17c5ed204458f4bab2 (patch)
tree011e085c89fe143768a25407062b8722b805cbd3 /compiler/rustc_codegen_gcc/example/std_example.rs
parentdb416211d6fd2847102ad4ade06582610c416cb0 (diff)
parentfed2f28223c43e56da6a31e6eb8c3fd5d84606d2 (diff)
downloadrust-12f7c17ae0e9137a4b470d17c5ed204458f4bab2.tar.gz
rust-12f7c17ae0e9137a4b470d17c5ed204458f4bab2.zip
Auto merge of #12535 - samueltardieu:issue-12528, r=y21
`useless_asref`: do not lint `.as_ref().map(Arc::clone)`

This applies to `Arc`, `Rc`, and their weak variants. Using `.clone()` would be less idiomatic.

This follows the discussion in <https://github.com/rust-lang/rust-clippy/issues/12528#issuecomment-2014444305>.

changelog: [`useless_asref`]: do not lint `.as_ref().map(Arc::clone)` and similar
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions