|
1 | 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:14:11 |
| 2 | + --> $DIR/trivially_copy_pass_by_ref.rs:23:11 |
3 | 3 | |
|
4 |
| -14 | fn bad(x: &u32, y: &Foo, z: &Baz) { |
| 4 | +23 | fn bad(x: &u32, y: &Foo, z: &Baz) { |
5 | 5 | | ^^^^ help: consider passing by value instead: `u32`
|
6 | 6 | |
|
7 | 7 | = note: `-D trivially-copy-pass-by-ref` implied by `-D warnings`
|
8 | 8 |
|
9 | 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:14:20 |
| 10 | + --> $DIR/trivially_copy_pass_by_ref.rs:23:20 |
11 | 11 | |
|
12 |
| -14 | fn bad(x: &u32, y: &Foo, z: &Baz) { |
| 12 | +23 | fn bad(x: &u32, y: &Foo, z: &Baz) { |
13 | 13 | | ^^^^ help: consider passing by value instead: `Foo`
|
14 | 14 |
|
15 | 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:14:29 |
| 16 | + --> $DIR/trivially_copy_pass_by_ref.rs:23:29 |
17 | 17 | |
|
18 |
| -14 | fn bad(x: &u32, y: &Foo, z: &Baz) { |
| 18 | +23 | fn bad(x: &u32, y: &Foo, z: &Baz) { |
19 | 19 | | ^^^^ help: consider passing by value instead: `Baz`
|
20 | 20 |
|
21 | 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:24:12 |
| 22 | + --> $DIR/trivially_copy_pass_by_ref.rs:33:12 |
23 | 23 | |
|
24 |
| -24 | fn bad(&self, x: &u32, y: &Foo, z: &Baz) { |
| 24 | +33 | fn bad(&self, x: &u32, y: &Foo, z: &Baz) { |
25 | 25 | | ^^^^^ help: consider passing by value instead: `self`
|
26 | 26 |
|
27 | 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:24:22 |
| 28 | + --> $DIR/trivially_copy_pass_by_ref.rs:33:22 |
29 | 29 | |
|
30 |
| -24 | fn bad(&self, x: &u32, y: &Foo, z: &Baz) { |
| 30 | +33 | fn bad(&self, x: &u32, y: &Foo, z: &Baz) { |
31 | 31 | | ^^^^ help: consider passing by value instead: `u32`
|
32 | 32 |
|
33 | 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:24:31 |
| 34 | + --> $DIR/trivially_copy_pass_by_ref.rs:33:31 |
35 | 35 | |
|
36 |
| -24 | fn bad(&self, x: &u32, y: &Foo, z: &Baz) { |
| 36 | +33 | fn bad(&self, x: &u32, y: &Foo, z: &Baz) { |
37 | 37 | | ^^^^ help: consider passing by value instead: `Foo`
|
38 | 38 |
|
39 | 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:24:40 |
| 40 | + --> $DIR/trivially_copy_pass_by_ref.rs:33:40 |
41 | 41 | |
|
42 |
| -24 | fn bad(&self, x: &u32, y: &Foo, z: &Baz) { |
| 42 | +33 | fn bad(&self, x: &u32, y: &Foo, z: &Baz) { |
43 | 43 | | ^^^^ help: consider passing by value instead: `Baz`
|
44 | 44 |
|
45 | 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:27:16 |
| 46 | + --> $DIR/trivially_copy_pass_by_ref.rs:36:16 |
47 | 47 | |
|
48 |
| -27 | fn bad2(x: &u32, y: &Foo, z: &Baz) { |
| 48 | +36 | fn bad2(x: &u32, y: &Foo, z: &Baz) { |
49 | 49 | | ^^^^ help: consider passing by value instead: `u32`
|
50 | 50 |
|
51 | 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:27:25 |
| 52 | + --> $DIR/trivially_copy_pass_by_ref.rs:36:25 |
53 | 53 | |
|
54 |
| -27 | fn bad2(x: &u32, y: &Foo, z: &Baz) { |
| 54 | +36 | fn bad2(x: &u32, y: &Foo, z: &Baz) { |
55 | 55 | | ^^^^ help: consider passing by value instead: `Foo`
|
56 | 56 |
|
57 | 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:27:34 |
| 58 | + --> $DIR/trivially_copy_pass_by_ref.rs:36:34 |
59 | 59 | |
|
60 |
| -27 | fn bad2(x: &u32, y: &Foo, z: &Baz) { |
| 60 | +36 | fn bad2(x: &u32, y: &Foo, z: &Baz) { |
61 | 61 | | ^^^^ help: consider passing by value instead: `Baz`
|
62 | 62 |
|
63 | 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:41:16 |
| 64 | + --> $DIR/trivially_copy_pass_by_ref.rs:50:16 |
65 | 65 | |
|
66 |
| -41 | fn bad2(x: &u32, y: &Foo, z: &Baz) { |
| 66 | +50 | fn bad2(x: &u32, y: &Foo, z: &Baz) { |
67 | 67 | | ^^^^ help: consider passing by value instead: `u32`
|
68 | 68 |
|
69 | 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:41:25 |
| 70 | + --> $DIR/trivially_copy_pass_by_ref.rs:50:25 |
71 | 71 | |
|
72 |
| -41 | fn bad2(x: &u32, y: &Foo, z: &Baz) { |
| 72 | +50 | fn bad2(x: &u32, y: &Foo, z: &Baz) { |
73 | 73 | | ^^^^ help: consider passing by value instead: `Foo`
|
74 | 74 |
|
75 | 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:41:34 |
| 76 | + --> $DIR/trivially_copy_pass_by_ref.rs:50:34 |
77 | 77 | |
|
78 |
| -41 | fn bad2(x: &u32, y: &Foo, z: &Baz) { |
| 78 | +50 | fn bad2(x: &u32, y: &Foo, z: &Baz) { |
79 | 79 | | ^^^^ help: consider passing by value instead: `Baz`
|
80 | 80 |
|
81 | 81 | error: aborting due to 13 previous errors
|
|
0 commit comments