]> git.lizzy.rs Git - rust.git/blob - tests/ui/trivially_copy_pass_by_ref.stderr
Adapt the *.stderr files of the ui-tests to the tool_lints
[rust.git] / tests / ui / trivially_copy_pass_by_ref.stderr
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:42:11
3    |
4 42 | fn bad(x: &u32, y: &Foo, z: &Baz) {
5    |           ^^^^ help: consider passing by value instead: `u32`
6    |
7    = note: `-D clippy::trivially-copy-pass-by-ref` implied by `-D warnings`
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:42:20
11    |
12 42 | fn bad(x: &u32, y: &Foo, z: &Baz) {
13    |                    ^^^^ help: consider passing by value instead: `Foo`
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:42:29
17    |
18 42 | fn bad(x: &u32, y: &Foo, z: &Baz) {
19    |                             ^^^^ help: consider passing by value instead: `Baz`
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:52:12
23    |
24 52 |     fn bad(&self, x: &u32, y: &Foo, z: &Baz) {
25    |            ^^^^^ help: consider passing by value instead: `self`
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:52:22
29    |
30 52 |     fn bad(&self, x: &u32, y: &Foo, z: &Baz) {
31    |                      ^^^^ help: consider passing by value instead: `u32`
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:52:31
35    |
36 52 |     fn bad(&self, x: &u32, y: &Foo, z: &Baz) {
37    |                               ^^^^ help: consider passing by value instead: `Foo`
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:52:40
41    |
42 52 |     fn bad(&self, x: &u32, y: &Foo, z: &Baz) {
43    |                                        ^^^^ help: consider passing by value instead: `Baz`
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:55:16
47    |
48 55 |     fn bad2(x: &u32, y: &Foo, z: &Baz) {
49    |                ^^^^ help: consider passing by value instead: `u32`
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:55:25
53    |
54 55 |     fn bad2(x: &u32, y: &Foo, z: &Baz) {
55    |                         ^^^^ help: consider passing by value instead: `Foo`
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:55:34
59    |
60 55 |     fn bad2(x: &u32, y: &Foo, z: &Baz) {
61    |                                  ^^^^ help: consider passing by value instead: `Baz`
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:69:16
65    |
66 69 |     fn bad2(x: &u32, y: &Foo, z: &Baz) {
67    |                ^^^^ help: consider passing by value instead: `u32`
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:69:25
71    |
72 69 |     fn bad2(x: &u32, y: &Foo, z: &Baz) {
73    |                         ^^^^ help: consider passing by value instead: `Foo`
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:69:34
77    |
78 69 |     fn bad2(x: &u32, y: &Foo, z: &Baz) {
79    |                                  ^^^^ help: consider passing by value instead: `Baz`
80
81 error: aborting due to 13 previous errors
82