rust/tests/ui/redundant_clone.stderr

124 lines
3.4 KiB
Text
Raw Normal View History

2018-10-23 09:01:45 +02:00
error: redundant clone
--> $DIR/redundant_clone.rs:7:41
2018-10-23 09:01:45 +02:00
|
2018-12-27 16:57:55 +01:00
LL | let _ = ["lorem", "ipsum"].join(" ").to_string();
2018-10-23 09:01:45 +02:00
| ^^^^^^^^^^^^ help: remove this
|
= note: `-D clippy::redundant-clone` implied by `-D warnings`
note: this value is dropped without further use
--> $DIR/redundant_clone.rs:7:13
2018-10-23 09:01:45 +02:00
|
2018-12-27 16:57:55 +01:00
LL | let _ = ["lorem", "ipsum"].join(" ").to_string();
2018-10-23 09:01:45 +02:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: redundant clone
--> $DIR/redundant_clone.rs:10:14
2018-10-23 09:01:45 +02:00
|
2018-12-27 16:57:55 +01:00
LL | let _ = s.clone();
2018-10-23 09:01:45 +02:00
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> $DIR/redundant_clone.rs:10:13
2018-10-23 09:01:45 +02:00
|
2018-12-27 16:57:55 +01:00
LL | let _ = s.clone();
2018-10-23 09:01:45 +02:00
| ^
error: redundant clone
--> $DIR/redundant_clone.rs:13:14
2018-10-23 09:01:45 +02:00
|
2018-12-27 16:57:55 +01:00
LL | let _ = s.to_string();
2018-10-23 09:01:45 +02:00
| ^^^^^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> $DIR/redundant_clone.rs:13:13
2018-10-23 09:01:45 +02:00
|
2018-12-27 16:57:55 +01:00
LL | let _ = s.to_string();
2018-10-23 09:01:45 +02:00
| ^
error: redundant clone
--> $DIR/redundant_clone.rs:16:14
2018-10-23 09:01:45 +02:00
|
2018-12-27 16:57:55 +01:00
LL | let _ = s.to_owned();
2018-10-23 09:01:45 +02:00
| ^^^^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> $DIR/redundant_clone.rs:16:13
2018-10-23 09:01:45 +02:00
|
2018-12-27 16:57:55 +01:00
LL | let _ = s.to_owned();
2018-10-23 09:01:45 +02:00
| ^
error: redundant clone
--> $DIR/redundant_clone.rs:18:41
2018-10-23 09:01:45 +02:00
|
2018-12-27 16:57:55 +01:00
LL | let _ = Path::new("/a/b/").join("c").to_owned();
2018-10-23 09:01:45 +02:00
| ^^^^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> $DIR/redundant_clone.rs:18:13
2018-10-23 09:01:45 +02:00
|
2018-12-27 16:57:55 +01:00
LL | let _ = Path::new("/a/b/").join("c").to_owned();
2018-10-23 09:01:45 +02:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: redundant clone
--> $DIR/redundant_clone.rs:20:41
2018-10-23 09:01:45 +02:00
|
2018-12-27 16:57:55 +01:00
LL | let _ = Path::new("/a/b/").join("c").to_path_buf();
2018-10-23 09:01:45 +02:00
| ^^^^^^^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> $DIR/redundant_clone.rs:20:13
2018-10-23 09:01:45 +02:00
|
2018-12-27 16:57:55 +01:00
LL | let _ = Path::new("/a/b/").join("c").to_path_buf();
2018-10-23 09:01:45 +02:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: redundant clone
--> $DIR/redundant_clone.rs:22:28
2018-10-23 09:01:45 +02:00
|
2018-12-27 16:57:55 +01:00
LL | let _ = OsString::new().to_owned();
2018-10-23 09:01:45 +02:00
| ^^^^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> $DIR/redundant_clone.rs:22:13
2018-10-23 09:01:45 +02:00
|
2018-12-27 16:57:55 +01:00
LL | let _ = OsString::new().to_owned();
2018-10-23 09:01:45 +02:00
| ^^^^^^^^^^^^^^^
error: redundant clone
--> $DIR/redundant_clone.rs:24:28
2018-10-23 09:01:45 +02:00
|
2018-12-27 16:57:55 +01:00
LL | let _ = OsString::new().to_os_string();
2018-10-23 09:01:45 +02:00
| ^^^^^^^^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> $DIR/redundant_clone.rs:24:13
2018-10-23 09:01:45 +02:00
|
2018-12-27 16:57:55 +01:00
LL | let _ = OsString::new().to_os_string();
2018-10-23 09:01:45 +02:00
| ^^^^^^^^^^^^^^^
error: redundant clone
--> $DIR/redundant_clone.rs:31:18
2018-10-23 09:01:45 +02:00
|
2018-12-27 16:57:55 +01:00
LL | let _ = tup.0.clone();
2018-12-09 12:19:21 +01:00
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> $DIR/redundant_clone.rs:31:13
2018-12-09 12:19:21 +01:00
|
2018-12-27 16:57:55 +01:00
LL | let _ = tup.0.clone();
2018-12-09 12:19:21 +01:00
| ^^^^^
error: redundant clone
--> $DIR/redundant_clone.rs:41:22
2018-12-09 12:19:21 +01:00
|
2018-12-27 16:57:55 +01:00
LL | (a.clone(), a.clone())
2018-10-23 09:01:45 +02:00
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> $DIR/redundant_clone.rs:41:21
2018-10-23 09:01:45 +02:00
|
2018-12-27 16:57:55 +01:00
LL | (a.clone(), a.clone())
2018-10-23 09:01:45 +02:00
| ^
2018-12-09 12:19:21 +01:00
error: aborting due to 10 previous errors
2018-10-23 09:01:45 +02:00