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-08-02 02:57:49 -05:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:40:11
|
2018-05-27 07:32:03 -05:00
|
|
|
|
|
2018-08-02 02:57:49 -05:00
|
|
|
40 | fn bad(x: &u32, y: &Foo, z: &Baz) {
|
2018-05-27 07:32:03 -05:00
|
|
|
| ^^^^ help: consider passing by value instead: `u32`
|
|
|
|
|
|
|
|
|
= note: `-D trivially-copy-pass-by-ref` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: this argument is passed by reference, but would be more efficient if passed by value
|
2018-08-02 02:57:49 -05:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:40:20
|
2018-05-27 07:32:03 -05:00
|
|
|
|
|
2018-08-02 02:57:49 -05:00
|
|
|
40 | 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-08-02 02:57:49 -05:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:40:29
|
2018-05-27 07:32:03 -05:00
|
|
|
|
|
2018-08-02 02:57:49 -05:00
|
|
|
40 | 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-08-02 02:57:49 -05:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:50:12
|
2018-05-27 07:32:03 -05:00
|
|
|
|
|
2018-08-02 02:57:49 -05:00
|
|
|
50 | 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-08-02 02:57:49 -05:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:50:22
|
2018-05-27 07:32:03 -05:00
|
|
|
|
|
2018-08-02 02:57:49 -05:00
|
|
|
50 | 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-08-02 02:57:49 -05:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:50:31
|
2018-05-27 07:32:03 -05:00
|
|
|
|
|
2018-08-02 02:57:49 -05:00
|
|
|
50 | 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-08-02 02:57:49 -05:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:50:40
|
2018-05-27 07:32:03 -05:00
|
|
|
|
|
2018-08-02 02:57:49 -05:00
|
|
|
50 | 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-08-02 02:57:49 -05:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:53:16
|
2018-05-27 07:32:03 -05:00
|
|
|
|
|
2018-08-02 02:57:49 -05:00
|
|
|
53 | 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-08-02 02:57:49 -05:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:53:25
|
2018-05-27 07:32:03 -05:00
|
|
|
|
|
2018-08-02 02:57:49 -05:00
|
|
|
53 | 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-08-02 02:57:49 -05:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:53:34
|
2018-05-27 07:32:03 -05:00
|
|
|
|
|
2018-08-02 02:57:49 -05:00
|
|
|
53 | 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-08-02 02:57:49 -05:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:67:16
|
2018-05-27 07:32:03 -05:00
|
|
|
|
|
2018-08-02 02:57:49 -05:00
|
|
|
67 | 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-08-02 02:57:49 -05:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:67:25
|
2018-05-27 07:32:03 -05:00
|
|
|
|
|
2018-08-02 02:57:49 -05:00
|
|
|
67 | 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-08-02 02:57:49 -05:00
|
|
|
--> $DIR/trivially_copy_pass_by_ref.rs:67:34
|
2018-05-27 07:32:03 -05:00
|
|
|
|
|
2018-08-02 02:57:49 -05:00
|
|
|
67 | 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
|
|
|
|
|