2018-05-27 12:32:03 +00:00
|
|
|
error: this argument is passed by reference, but would be more efficient if passed by value
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:47:11
|
2018-05-27 12:32:03 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | fn bad(x: &u32, y: &Foo, z: &Baz) {}
|
2018-05-27 12:32:03 +00:00
|
|
|
| ^^^^ help: consider passing by value instead: `u32`
|
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
= note: `-D clippy::trivially-copy-pass-by-ref` implied by `-D warnings`
|
2018-05-27 12:32:03 +00:00
|
|
|
|
|
|
|
error: this argument is passed by reference, but would be more efficient if passed by value
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:47:20
|
2018-05-27 12:32:03 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | fn bad(x: &u32, y: &Foo, z: &Baz) {}
|
2018-05-27 12:32:03 +00:00
|
|
|
| ^^^^ help: consider passing by value instead: `Foo`
|
|
|
|
|
|
|
|
error: this argument is passed by reference, but would be more efficient if passed by value
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:47:29
|
2018-05-27 12:32:03 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | fn bad(x: &u32, y: &Foo, z: &Baz) {}
|
2018-05-27 12:32:03 +00:00
|
|
|
| ^^^^ help: consider passing by value instead: `Baz`
|
|
|
|
|
|
|
|
error: this argument is passed by reference, but would be more efficient if passed by value
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:54:12
|
2018-05-27 12:32:03 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | fn bad(&self, x: &u32, y: &Foo, z: &Baz) {}
|
2018-05-27 12:32:03 +00:00
|
|
|
| ^^^^^ help: consider passing by value instead: `self`
|
|
|
|
|
|
|
|
error: this argument is passed by reference, but would be more efficient if passed by value
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:54:22
|
2018-05-27 12:32:03 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | fn bad(&self, x: &u32, y: &Foo, z: &Baz) {}
|
2018-05-27 12:32:03 +00:00
|
|
|
| ^^^^ help: consider passing by value instead: `u32`
|
|
|
|
|
|
|
|
error: this argument is passed by reference, but would be more efficient if passed by value
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:54:31
|
2018-05-27 12:32:03 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | fn bad(&self, x: &u32, y: &Foo, z: &Baz) {}
|
2018-05-27 12:32:03 +00:00
|
|
|
| ^^^^ help: consider passing by value instead: `Foo`
|
|
|
|
|
|
|
|
error: this argument is passed by reference, but would be more efficient if passed by value
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:54:40
|
2018-05-27 12:32:03 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | fn bad(&self, x: &u32, y: &Foo, z: &Baz) {}
|
2018-05-27 12:32:03 +00:00
|
|
|
| ^^^^ help: consider passing by value instead: `Baz`
|
|
|
|
|
|
|
|
error: this argument is passed by reference, but would be more efficient if passed by value
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:56:16
|
2018-05-27 12:32:03 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {}
|
2018-05-27 12:32:03 +00:00
|
|
|
| ^^^^ help: consider passing by value instead: `u32`
|
|
|
|
|
|
|
|
error: this argument is passed by reference, but would be more efficient if passed by value
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:56:25
|
2018-05-27 12:32:03 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {}
|
2018-05-27 12:32:03 +00:00
|
|
|
| ^^^^ help: consider passing by value instead: `Foo`
|
|
|
|
|
|
|
|
error: this argument is passed by reference, but would be more efficient if passed by value
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:56:34
|
2018-05-27 12:32:03 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {}
|
2018-05-27 12:32:03 +00:00
|
|
|
| ^^^^ help: consider passing by value instead: `Baz`
|
|
|
|
|
|
|
|
error: this argument is passed by reference, but would be more efficient if passed by value
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:68:16
|
2018-05-27 12:32:03 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {}
|
2018-05-27 12:32:03 +00:00
|
|
|
| ^^^^ help: consider passing by value instead: `u32`
|
|
|
|
|
|
|
|
error: this argument is passed by reference, but would be more efficient if passed by value
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:68:25
|
2018-05-27 12:32:03 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {}
|
2018-05-27 12:32:03 +00:00
|
|
|
| ^^^^ help: consider passing by value instead: `Foo`
|
|
|
|
|
|
|
|
error: this argument is passed by reference, but would be more efficient if passed by value
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:68:34
|
2018-05-27 12:32:03 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {}
|
2018-05-27 12:32:03 +00:00
|
|
|
| ^^^^ help: consider passing by value instead: `Baz`
|
|
|
|
|
2018-11-21 01:59:02 +00:00
|
|
|
error: this argument is passed by reference, but would be more efficient if passed by value
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:72:34
|
2018-11-21 01:59:02 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | fn trait_method(&self, _foo: &Foo);
|
2018-11-21 01:59:02 +00:00
|
|
|
| ^^^^ help: consider passing by value instead: `Foo`
|
|
|
|
|
|
|
|
error: this argument is passed by reference, but would be more efficient if passed by value
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:76:37
|
2018-11-21 01:59:02 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | fn trait_method2(&self, _color: &Color);
|
2018-11-21 01:59:02 +00:00
|
|
|
| ^^^^^^ help: consider passing by value instead: `Color`
|
|
|
|
|
|
|
|
error: aborting due to 15 previous errors
|
2018-05-27 12:32:03 +00:00
|
|
|
|