]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/implicit_clone.stderr
bump version to 1.80.1+dfsg1-1~bpo12+pve1
[rustc.git] / src / tools / clippy / tests / ui / implicit_clone.stderr
CommitLineData
f20569fa 1error: implicitly cloning a `Vec` by calling `to_owned` on its dereferenced type
c620b35d 2 --> tests/ui/implicit_clone.rs:65:13
f20569fa
XL
3 |
4LL | let _ = vec.to_owned();
5099ac24 5 | ^^^^^^^^^^^^^^ help: consider using: `vec.clone()`
f20569fa
XL
6 |
7 = note: `-D clippy::implicit-clone` implied by `-D warnings`
781aab86 8 = help: to override `-D warnings` add `#[allow(clippy::implicit_clone)]`
f20569fa
XL
9
10error: implicitly cloning a `Vec` by calling `to_vec` on its dereferenced type
c620b35d 11 --> tests/ui/implicit_clone.rs:66:13
f20569fa
XL
12 |
13LL | let _ = vec.to_vec();
5099ac24 14 | ^^^^^^^^^^^^ help: consider using: `vec.clone()`
f20569fa 15
f20569fa 16error: implicitly cloning a `Vec` by calling `to_vec` on its dereferenced type
c620b35d 17 --> tests/ui/implicit_clone.rs:71:13
f20569fa
XL
18 |
19LL | let _ = vec_ref.to_vec();
5099ac24 20 | ^^^^^^^^^^^^^^^^ help: consider using: `vec_ref.clone()`
f20569fa
XL
21
22error: implicitly cloning a `String` by calling `to_owned` on its dereferenced type
c620b35d 23 --> tests/ui/implicit_clone.rs:83:13
f20569fa
XL
24 |
25LL | let _ = str.to_owned();
5099ac24 26 | ^^^^^^^^^^^^^^ help: consider using: `str.clone()`
f20569fa
XL
27
28error: implicitly cloning a `Kitten` by calling `to_owned` on its dereferenced type
c620b35d 29 --> tests/ui/implicit_clone.rs:87:13
f20569fa
XL
30 |
31LL | let _ = kitten.to_owned();
5099ac24 32 | ^^^^^^^^^^^^^^^^^ help: consider using: `kitten.clone()`
f20569fa
XL
33
34error: implicitly cloning a `PathBuf` by calling `to_owned` on its dereferenced type
c620b35d 35 --> tests/ui/implicit_clone.rs:97:13
f20569fa
XL
36 |
37LL | let _ = pathbuf.to_owned();
5099ac24 38 | ^^^^^^^^^^^^^^^^^^ help: consider using: `pathbuf.clone()`
f20569fa
XL
39
40error: implicitly cloning a `PathBuf` by calling `to_path_buf` on its dereferenced type
c620b35d 41 --> tests/ui/implicit_clone.rs:98:13
f20569fa
XL
42 |
43LL | let _ = pathbuf.to_path_buf();
5099ac24 44 | ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `pathbuf.clone()`
f20569fa
XL
45
46error: implicitly cloning a `OsString` by calling `to_owned` on its dereferenced type
c620b35d 47 --> tests/ui/implicit_clone.rs:101:13
f20569fa
XL
48 |
49LL | let _ = os_string.to_owned();
5099ac24 50 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `os_string.clone()`
f20569fa
XL
51
52error: implicitly cloning a `OsString` by calling `to_os_string` on its dereferenced type
c620b35d 53 --> tests/ui/implicit_clone.rs:102:13
f20569fa
XL
54 |
55LL | let _ = os_string.to_os_string();
5099ac24 56 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `os_string.clone()`
f20569fa 57
5099ac24 58error: implicitly cloning a `PathBuf` by calling `to_path_buf` on its dereferenced type
c620b35d 59 --> tests/ui/implicit_clone.rs:113:13
5099ac24
FG
60 |
61LL | let _ = pathbuf_ref.to_path_buf();
62 | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(*pathbuf_ref).clone()`
63
64error: implicitly cloning a `PathBuf` by calling `to_path_buf` on its dereferenced type
c620b35d 65 --> tests/ui/implicit_clone.rs:116:13
5099ac24
FG
66 |
67LL | let _ = pathbuf_ref.to_path_buf();
68 | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(**pathbuf_ref).clone()`
69
781aab86 70error: aborting due to 11 previous errors
f20569fa 71