2018-05-27 07:32:03 -05:00
|
|
|
error: this argument is passed by reference, but would be more efficient if passed by value
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:52:11
|
2018-05-27 07:32:03 -05:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
52 | fn bad(x: &u32, y: &Foo, z: &Baz) {
|
2018-05-27 07:32:03 -05:00
|
|
|
| ^^^^ help: consider passing by value instead: `u32`
|
|
|
|
|
|
2018-08-01 09:30:44 -05:00
|
|
|
= note: `-D clippy::trivially-copy-pass-by-ref` implied by `-D warnings`
|
2018-05-27 07:32:03 -05:00
|
|
|
|
|
|
|
error: this argument is passed by reference, but would be more efficient if passed by value
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:52:20
|
2018-05-27 07:32:03 -05:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
52 | fn bad(x: &u32, y: &Foo, z: &Baz) {
|
2018-05-27 07:32:03 -05:00
|
|
|
| ^^^^ help: consider passing by value instead: `Foo`
|
|
|
|
|
|
|
|
error: this argument is passed by reference, but would be more efficient if passed by value
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:52:29
|
2018-05-27 07:32:03 -05:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
52 | fn bad(x: &u32, y: &Foo, z: &Baz) {
|
2018-05-27 07:32:03 -05:00
|
|
|
| ^^^^ help: consider passing by value instead: `Baz`
|
|
|
|
|
|
|
|
error: this argument is passed by reference, but would be more efficient if passed by value
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:62:12
|
2018-05-27 07:32:03 -05:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
62 | fn bad(&self, x: &u32, y: &Foo, z: &Baz) {
|
2018-05-27 07:32:03 -05:00
|
|
|
| ^^^^^ help: consider passing by value instead: `self`
|
|
|
|
|
|
|
|
error: this argument is passed by reference, but would be more efficient if passed by value
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:62:22
|
2018-05-27 07:32:03 -05:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
62 | fn bad(&self, x: &u32, y: &Foo, z: &Baz) {
|
2018-05-27 07:32:03 -05:00
|
|
|
| ^^^^ help: consider passing by value instead: `u32`
|
|
|
|
|
|
|
|
error: this argument is passed by reference, but would be more efficient if passed by value
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:62:31
|
2018-05-27 07:32:03 -05:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
62 | fn bad(&self, x: &u32, y: &Foo, z: &Baz) {
|
2018-05-27 07:32:03 -05:00
|
|
|
| ^^^^ help: consider passing by value instead: `Foo`
|
|
|
|
|
|
|
|
error: this argument is passed by reference, but would be more efficient if passed by value
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:62:40
|
2018-05-27 07:32:03 -05:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
62 | fn bad(&self, x: &u32, y: &Foo, z: &Baz) {
|
2018-05-27 07:32:03 -05:00
|
|
|
| ^^^^ help: consider passing by value instead: `Baz`
|
|
|
|
|
|
|
|
error: this argument is passed by reference, but would be more efficient if passed by value
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:65:16
|
2018-05-27 07:32:03 -05:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
65 | fn bad2(x: &u32, y: &Foo, z: &Baz) {
|
2018-05-27 07:32:03 -05:00
|
|
|
| ^^^^ help: consider passing by value instead: `u32`
|
|
|
|
|
|
|
|
error: this argument is passed by reference, but would be more efficient if passed by value
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:65:25
|
2018-05-27 07:32:03 -05:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
65 | fn bad2(x: &u32, y: &Foo, z: &Baz) {
|
2018-05-27 07:32:03 -05:00
|
|
|
| ^^^^ help: consider passing by value instead: `Foo`
|
|
|
|
|
|
|
|
error: this argument is passed by reference, but would be more efficient if passed by value
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:65:34
|
2018-05-27 07:32:03 -05:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
65 | fn bad2(x: &u32, y: &Foo, z: &Baz) {
|
2018-05-27 07:32:03 -05:00
|
|
|
| ^^^^ help: consider passing by value instead: `Baz`
|
|
|
|
|
|
|
|
error: this argument is passed by reference, but would be more efficient if passed by value
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:79:16
|
2018-05-27 07:32:03 -05:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
79 | fn bad2(x: &u32, y: &Foo, z: &Baz) {
|
2018-05-27 07:32:03 -05:00
|
|
|
| ^^^^ help: consider passing by value instead: `u32`
|
|
|
|
|
|
|
|
error: this argument is passed by reference, but would be more efficient if passed by value
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:79:25
|
2018-05-27 07:32:03 -05:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
79 | fn bad2(x: &u32, y: &Foo, z: &Baz) {
|
2018-05-27 07:32:03 -05:00
|
|
|
| ^^^^ help: consider passing by value instead: `Foo`
|
|
|
|
|
|
|
|
error: this argument is passed by reference, but would be more efficient if passed by value
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:79:34
|
2018-05-27 07:32:03 -05:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
79 | fn bad2(x: &u32, y: &Foo, z: &Baz) {
|
2018-05-27 07:32:03 -05:00
|
|
|
| ^^^^ help: consider passing by value instead: `Baz`
|
|
|
|
|
|
|
|
error: aborting due to 13 previous errors
|
|
|
|
|