rust/tests/ui/trivially_copy_pass_by_ref.stderr

95 lines
4.1 KiB
Plaintext
Raw Normal View History

error: this argument is passed by reference, but would be more efficient if passed by value
2018-12-09 23:27:19 -06:00
--> $DIR/trivially_copy_pass_by_ref.rs:56:11
|
2018-12-09 23:27:19 -06:00
56 | fn bad(x: &u32, y: &Foo, z: &Baz) {}
| ^^^^ help: consider passing by value instead: `u32`
|
= note: `-D clippy::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-12-09 23:27:19 -06:00
--> $DIR/trivially_copy_pass_by_ref.rs:56:20
|
2018-12-09 23:27:19 -06:00
56 | fn bad(x: &u32, y: &Foo, z: &Baz) {}
| ^^^^ help: consider passing by value instead: `Foo`
error: this argument is passed by reference, but would be more efficient if passed by value
2018-12-09 23:27:19 -06:00
--> $DIR/trivially_copy_pass_by_ref.rs:56:29
|
2018-12-09 23:27:19 -06:00
56 | fn bad(x: &u32, y: &Foo, z: &Baz) {}
| ^^^^ help: consider passing by value instead: `Baz`
error: this argument is passed by reference, but would be more efficient if passed by value
2018-12-09 23:27:19 -06:00
--> $DIR/trivially_copy_pass_by_ref.rs:63:12
|
2018-12-09 23:27:19 -06:00
63 | fn bad(&self, x: &u32, y: &Foo, z: &Baz) {}
| ^^^^^ help: consider passing by value instead: `self`
error: this argument is passed by reference, but would be more efficient if passed by value
2018-12-09 23:27:19 -06:00
--> $DIR/trivially_copy_pass_by_ref.rs:63:22
|
2018-12-09 23:27:19 -06:00
63 | fn bad(&self, x: &u32, y: &Foo, z: &Baz) {}
| ^^^^ help: consider passing by value instead: `u32`
error: this argument is passed by reference, but would be more efficient if passed by value
2018-12-09 23:27:19 -06:00
--> $DIR/trivially_copy_pass_by_ref.rs:63:31
|
2018-12-09 23:27:19 -06:00
63 | fn bad(&self, x: &u32, y: &Foo, z: &Baz) {}
| ^^^^ help: consider passing by value instead: `Foo`
error: this argument is passed by reference, but would be more efficient if passed by value
2018-12-09 23:27:19 -06:00
--> $DIR/trivially_copy_pass_by_ref.rs:63:40
|
2018-12-09 23:27:19 -06:00
63 | fn bad(&self, x: &u32, y: &Foo, z: &Baz) {}
| ^^^^ help: consider passing by value instead: `Baz`
error: this argument is passed by reference, but would be more efficient if passed by value
2018-12-09 23:27:19 -06:00
--> $DIR/trivially_copy_pass_by_ref.rs:65:16
|
2018-12-09 23:27:19 -06:00
65 | fn bad2(x: &u32, y: &Foo, z: &Baz) {}
| ^^^^ help: consider passing by value instead: `u32`
error: this argument is passed by reference, but would be more efficient if passed by value
2018-12-09 23:27:19 -06:00
--> $DIR/trivially_copy_pass_by_ref.rs:65:25
|
2018-12-09 23:27:19 -06:00
65 | fn bad2(x: &u32, y: &Foo, z: &Baz) {}
| ^^^^ help: consider passing by value instead: `Foo`
error: this argument is passed by reference, but would be more efficient if passed by value
2018-12-09 23:27:19 -06:00
--> $DIR/trivially_copy_pass_by_ref.rs:65:34
|
2018-12-09 23:27:19 -06:00
65 | fn bad2(x: &u32, y: &Foo, z: &Baz) {}
| ^^^^ help: consider passing by value instead: `Baz`
error: this argument is passed by reference, but would be more efficient if passed by value
2018-12-09 23:27:19 -06:00
--> $DIR/trivially_copy_pass_by_ref.rs:77:16
|
2018-12-09 23:27:19 -06:00
77 | fn bad2(x: &u32, y: &Foo, z: &Baz) {}
| ^^^^ help: consider passing by value instead: `u32`
error: this argument is passed by reference, but would be more efficient if passed by value
2018-12-09 23:27:19 -06:00
--> $DIR/trivially_copy_pass_by_ref.rs:77:25
|
2018-12-09 23:27:19 -06:00
77 | fn bad2(x: &u32, y: &Foo, z: &Baz) {}
| ^^^^ help: consider passing by value instead: `Foo`
error: this argument is passed by reference, but would be more efficient if passed by value
2018-12-09 23:27:19 -06:00
--> $DIR/trivially_copy_pass_by_ref.rs:77:34
|
2018-12-09 23:27:19 -06:00
77 | fn bad2(x: &u32, y: &Foo, z: &Baz) {}
| ^^^^ help: consider passing by value instead: `Baz`
error: this argument is passed by reference, but would be more efficient if passed by value
2018-12-09 23:27:19 -06:00
--> $DIR/trivially_copy_pass_by_ref.rs:81:34
|
2018-12-09 23:27:19 -06:00
81 | fn trait_method(&self, _foo: &Foo);
| ^^^^ help: consider passing by value instead: `Foo`
error: this argument is passed by reference, but would be more efficient if passed by value
2018-12-09 23:27:19 -06:00
--> $DIR/trivially_copy_pass_by_ref.rs:85:37
|
2018-12-09 23:27:19 -06:00
85 | fn trait_method2(&self, _color: &Color);
| ^^^^^^ help: consider passing by value instead: `Color`
error: aborting due to 15 previous errors