|
1 |
| -error: this argument is passed by reference, but would be more efficient if passed by value |
2 |
| - --> $DIR/trivially_copy_pass_by_ref.rs:47:11 |
| 1 | +error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte) |
| 2 | + --> $DIR/trivially_copy_pass_by_ref.rs:50:11 |
3 | 3 | |
|
4 | 4 | LL | fn bad(x: &u32, y: &Foo, z: &Baz) {}
|
5 | 5 | | ^^^^ help: consider passing by value instead: `u32`
|
6 | 6 | |
|
7 | 7 | = note: `-D clippy::trivially-copy-pass-by-ref` implied by `-D warnings`
|
8 | 8 |
|
9 |
| -error: this argument is passed by reference, but would be more efficient if passed by value |
10 |
| - --> $DIR/trivially_copy_pass_by_ref.rs:47:20 |
| 9 | +error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte) |
| 10 | + --> $DIR/trivially_copy_pass_by_ref.rs:50:20 |
11 | 11 | |
|
12 | 12 | LL | fn bad(x: &u32, y: &Foo, z: &Baz) {}
|
13 | 13 | | ^^^^ help: consider passing by value instead: `Foo`
|
14 | 14 |
|
15 |
| -error: this argument is passed by reference, but would be more efficient if passed by value |
16 |
| - --> $DIR/trivially_copy_pass_by_ref.rs:47:29 |
| 15 | +error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte) |
| 16 | + --> $DIR/trivially_copy_pass_by_ref.rs:50:29 |
17 | 17 | |
|
18 | 18 | LL | fn bad(x: &u32, y: &Foo, z: &Baz) {}
|
19 | 19 | | ^^^^ help: consider passing by value instead: `Baz`
|
20 | 20 |
|
21 |
| -error: this argument is passed by reference, but would be more efficient if passed by value |
22 |
| - --> $DIR/trivially_copy_pass_by_ref.rs:54:12 |
| 21 | +error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte) |
| 22 | + --> $DIR/trivially_copy_pass_by_ref.rs:57:12 |
23 | 23 | |
|
24 | 24 | LL | fn bad(&self, x: &u32, y: &Foo, z: &Baz) {}
|
25 | 25 | | ^^^^^ help: consider passing by value instead: `self`
|
26 | 26 |
|
27 |
| -error: this argument is passed by reference, but would be more efficient if passed by value |
28 |
| - --> $DIR/trivially_copy_pass_by_ref.rs:54:22 |
| 27 | +error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte) |
| 28 | + --> $DIR/trivially_copy_pass_by_ref.rs:57:22 |
29 | 29 | |
|
30 | 30 | LL | fn bad(&self, x: &u32, y: &Foo, z: &Baz) {}
|
31 | 31 | | ^^^^ help: consider passing by value instead: `u32`
|
32 | 32 |
|
33 |
| -error: this argument is passed by reference, but would be more efficient if passed by value |
34 |
| - --> $DIR/trivially_copy_pass_by_ref.rs:54:31 |
| 33 | +error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte) |
| 34 | + --> $DIR/trivially_copy_pass_by_ref.rs:57:31 |
35 | 35 | |
|
36 | 36 | LL | fn bad(&self, x: &u32, y: &Foo, z: &Baz) {}
|
37 | 37 | | ^^^^ help: consider passing by value instead: `Foo`
|
38 | 38 |
|
39 |
| -error: this argument is passed by reference, but would be more efficient if passed by value |
40 |
| - --> $DIR/trivially_copy_pass_by_ref.rs:54:40 |
| 39 | +error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte) |
| 40 | + --> $DIR/trivially_copy_pass_by_ref.rs:57:40 |
41 | 41 | |
|
42 | 42 | LL | fn bad(&self, x: &u32, y: &Foo, z: &Baz) {}
|
43 | 43 | | ^^^^ help: consider passing by value instead: `Baz`
|
44 | 44 |
|
45 |
| -error: this argument is passed by reference, but would be more efficient if passed by value |
46 |
| - --> $DIR/trivially_copy_pass_by_ref.rs:56:16 |
| 45 | +error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte) |
| 46 | + --> $DIR/trivially_copy_pass_by_ref.rs:59:16 |
47 | 47 | |
|
48 | 48 | LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {}
|
49 | 49 | | ^^^^ help: consider passing by value instead: `u32`
|
50 | 50 |
|
51 |
| -error: this argument is passed by reference, but would be more efficient if passed by value |
52 |
| - --> $DIR/trivially_copy_pass_by_ref.rs:56:25 |
| 51 | +error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte) |
| 52 | + --> $DIR/trivially_copy_pass_by_ref.rs:59:25 |
53 | 53 | |
|
54 | 54 | LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {}
|
55 | 55 | | ^^^^ help: consider passing by value instead: `Foo`
|
56 | 56 |
|
57 |
| -error: this argument is passed by reference, but would be more efficient if passed by value |
58 |
| - --> $DIR/trivially_copy_pass_by_ref.rs:56:34 |
| 57 | +error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte) |
| 58 | + --> $DIR/trivially_copy_pass_by_ref.rs:59:34 |
59 | 59 | |
|
60 | 60 | LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {}
|
61 | 61 | | ^^^^ help: consider passing by value instead: `Baz`
|
62 | 62 |
|
63 |
| -error: this argument is passed by reference, but would be more efficient if passed by value |
64 |
| - --> $DIR/trivially_copy_pass_by_ref.rs:68:16 |
| 63 | +error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte) |
| 64 | + --> $DIR/trivially_copy_pass_by_ref.rs:71:16 |
65 | 65 | |
|
66 | 66 | LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {}
|
67 | 67 | | ^^^^ help: consider passing by value instead: `u32`
|
68 | 68 |
|
69 |
| -error: this argument is passed by reference, but would be more efficient if passed by value |
70 |
| - --> $DIR/trivially_copy_pass_by_ref.rs:68:25 |
| 69 | +error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte) |
| 70 | + --> $DIR/trivially_copy_pass_by_ref.rs:71:25 |
71 | 71 | |
|
72 | 72 | LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {}
|
73 | 73 | | ^^^^ help: consider passing by value instead: `Foo`
|
74 | 74 |
|
75 |
| -error: this argument is passed by reference, but would be more efficient if passed by value |
76 |
| - --> $DIR/trivially_copy_pass_by_ref.rs:68:34 |
| 75 | +error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte) |
| 76 | + --> $DIR/trivially_copy_pass_by_ref.rs:71:34 |
77 | 77 | |
|
78 | 78 | LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {}
|
79 | 79 | | ^^^^ help: consider passing by value instead: `Baz`
|
80 | 80 |
|
81 |
| -error: this argument is passed by reference, but would be more efficient if passed by value |
82 |
| - --> $DIR/trivially_copy_pass_by_ref.rs:72:34 |
| 81 | +error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte) |
| 82 | + --> $DIR/trivially_copy_pass_by_ref.rs:75:34 |
83 | 83 | |
|
84 | 84 | LL | fn trait_method(&self, _foo: &Foo);
|
85 | 85 | | ^^^^ help: consider passing by value instead: `Foo`
|
86 | 86 |
|
87 |
| -error: this argument is passed by reference, but would be more efficient if passed by value |
88 |
| - --> $DIR/trivially_copy_pass_by_ref.rs:76:37 |
| 87 | +error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte) |
| 88 | + --> $DIR/trivially_copy_pass_by_ref.rs:79:37 |
89 | 89 | |
|
90 | 90 | LL | fn trait_method2(&self, _color: &Color);
|
91 | 91 | | ^^^^^^ help: consider passing by value instead: `Color`
|
|
0 commit comments