]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: this argument (N byte) is passed by value, but might be more efficient if passed by reference (limit: N byte) |
2 | --> $DIR/large_types_passed_by_value.rs:20:11 | |
3 | | | |
4 | LL | fn bad(a: LargeAndCopy) {} | |
5 | | ^^^^^^^^^^^^ help: consider passing by reference instead: `&LargeAndCopy` | |
6 | | | |
7 | = note: `-D clippy::large-types-passed-by-value` implied by `-D warnings` | |
8 | ||
9 | error: this argument (N byte) is passed by value, but might be more efficient if passed by reference (limit: N byte) | |
10 | --> $DIR/large_types_passed_by_value.rs:25:37 | |
11 | | | |
12 | LL | fn other_is_not_ok(self, other: LargeAndCopy) {} | |
13 | | ^^^^^^^^^^^^ help: consider passing by reference instead: `&LargeAndCopy` | |
14 | ||
15 | error: this argument (N byte) is passed by value, but might be more efficient if passed by reference (limit: N byte) | |
16 | --> $DIR/large_types_passed_by_value.rs:31:36 | |
17 | | | |
18 | LL | fn devoure_array(&self, array: [u8; 6666]); | |
19 | | ^^^^^^^^^^ help: consider passing by reference instead: `&[u8; 6666]` | |
20 | ||
21 | error: this argument (N byte) is passed by value, but might be more efficient if passed by reference (limit: N byte) | |
22 | --> $DIR/large_types_passed_by_value.rs:32:34 | |
23 | | | |
24 | LL | fn devoure_tuple(&self, tup: (LargeAndCopy, LargeAndCopy)); | |
25 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider passing by reference instead: `&(LargeAndCopy, LargeAndCopy)` | |
26 | ||
27 | error: this argument (N byte) is passed by value, but might be more efficient if passed by reference (limit: N byte) | |
28 | --> $DIR/large_types_passed_by_value.rs:33:50 | |
29 | | | |
30 | LL | fn devoure_array_and_tuple_wow(&self, array: [u8; 6666], tup: (LargeAndCopy, LargeAndCopy)); | |
31 | | ^^^^^^^^^^ help: consider passing by reference instead: `&[u8; 6666]` | |
32 | ||
33 | error: this argument (N byte) is passed by value, but might be more efficient if passed by reference (limit: N byte) | |
34 | --> $DIR/large_types_passed_by_value.rs:33:67 | |
35 | | | |
36 | LL | fn devoure_array_and_tuple_wow(&self, array: [u8; 6666], tup: (LargeAndCopy, LargeAndCopy)); | |
37 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider passing by reference instead: `&(LargeAndCopy, LargeAndCopy)` | |
38 | ||
39 | error: this argument (N byte) is passed by value, but might be more efficient if passed by reference (limit: N byte) | |
40 | --> $DIR/large_types_passed_by_value.rs:58:17 | |
41 | | | |
42 | LL | fn foo_never(x: LargeAndCopy) { | |
43 | | ^^^^^^^^^^^^ help: consider passing by reference instead: `&LargeAndCopy` | |
44 | ||
45 | error: this argument (N byte) is passed by value, but might be more efficient if passed by reference (limit: N byte) | |
46 | --> $DIR/large_types_passed_by_value.rs:62:11 | |
47 | | | |
48 | LL | fn foo(x: LargeAndCopy) { | |
49 | | ^^^^^^^^^^^^ help: consider passing by reference instead: `&LargeAndCopy` | |
50 | ||
51 | error: aborting due to 8 previous errors | |
52 |