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