diff options
| author | bors <bors@rust-lang.org> | 2023-08-15 11:42:05 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-08-15 11:42:05 +0000 |
| commit | 11efa0133f9d0b0deafb9c73c4de14154a4e794f (patch) | |
| tree | 77643f0fd4d3f908883b57b003acfa61582aa66f /tests/ui/implicit_clone.fixed | |
| parent | b5bfd1176b3d0de03e63c8d0b244ef61b30067d8 (diff) | |
| parent | aa8995e589c7f4a433ae6fe27b319ff9898b523a (diff) | |
Auto merge of #11321 - J-ZhengLi:issue11281, r=giraffate
allow calling `to_owned` on borrowed value for [`implicit_clone`] fixes: #11281 a small and simple fix that give up checking for `referenced_value.to_owned()` usage. changelog: allow calling `to_owned` with borrowed value for [`implicit_clone`]
Diffstat (limited to 'tests/ui/implicit_clone.fixed')
| -rw-r--r-- | tests/ui/implicit_clone.fixed | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/implicit_clone.fixed b/tests/ui/implicit_clone.fixed index 04644b111bf..98556b4dd30 100644 --- a/tests/ui/implicit_clone.fixed +++ b/tests/ui/implicit_clone.fixed @@ -67,7 +67,7 @@ fn main() { let vec_ref = &vec; let _ = return_owned_from_slice(vec_ref); - let _ = vec_ref.clone(); + let _ = vec_ref.to_owned(); let _ = vec_ref.clone(); // we expect no lint for this |
