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