]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/large_types_passed_by_value.stderr
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / clippy / tests / ui / large_types_passed_by_value.stderr
CommitLineData
f20569fa
XL
1error: 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 |
4LL | 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
9error: 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 |
12LL | fn other_is_not_ok(self, other: LargeAndCopy) {}
13 | ^^^^^^^^^^^^ help: consider passing by reference instead: `&LargeAndCopy`
14
15error: 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 |
18LL | fn devoure_array(&self, array: [u8; 6666]);
19 | ^^^^^^^^^^ help: consider passing by reference instead: `&[u8; 6666]`
20
21error: 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 |
24LL | fn devoure_tuple(&self, tup: (LargeAndCopy, LargeAndCopy));
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider passing by reference instead: `&(LargeAndCopy, LargeAndCopy)`
26
27error: 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 |
30LL | fn devoure_array_and_tuple_wow(&self, array: [u8; 6666], tup: (LargeAndCopy, LargeAndCopy));
31 | ^^^^^^^^^^ help: consider passing by reference instead: `&[u8; 6666]`
32
33error: 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 |
36LL | fn devoure_array_and_tuple_wow(&self, array: [u8; 6666], tup: (LargeAndCopy, LargeAndCopy));
37 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider passing by reference instead: `&(LargeAndCopy, LargeAndCopy)`
38
39error: 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 |
42LL | fn foo_never(x: LargeAndCopy) {
43 | ^^^^^^^^^^^^ help: consider passing by reference instead: `&LargeAndCopy`
44
45error: 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 |
48LL | fn foo(x: LargeAndCopy) {
49 | ^^^^^^^^^^^^ help: consider passing by reference instead: `&LargeAndCopy`
50
51error: aborting due to 8 previous errors
52