@@ -22,92 +22,92 @@ error: this argument (N byte) is passed by reference, but would be more efficien
2222LL | fn bad(x: &u32, y: &Foo, z: &Baz) {}
2323 | ^^^^ help: consider passing by value instead: `Baz`
2424
25- error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte)
26- --> $DIR/trivially_copy_pass_by_ref.rs:59 :12
25+ error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: 8 byte)
26+ --> $DIR/trivially_copy_pass_by_ref.rs:61 :12
2727 |
2828LL | fn bad(&self, x: &u32, y: &Foo, z: &Baz) {}
2929 | ^^^^^ help: consider passing by value instead: `self`
3030
31- error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte)
32- --> $DIR/trivially_copy_pass_by_ref.rs:59 :22
31+ error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: 8 byte)
32+ --> $DIR/trivially_copy_pass_by_ref.rs:61 :22
3333 |
3434LL | fn bad(&self, x: &u32, y: &Foo, z: &Baz) {}
3535 | ^^^^ help: consider passing by value instead: `u32`
3636
37- error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte)
38- --> $DIR/trivially_copy_pass_by_ref.rs:59 :31
37+ error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: 8 byte)
38+ --> $DIR/trivially_copy_pass_by_ref.rs:61 :31
3939 |
4040LL | fn bad(&self, x: &u32, y: &Foo, z: &Baz) {}
4141 | ^^^^ help: consider passing by value instead: `Foo`
4242
43- error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte)
44- --> $DIR/trivially_copy_pass_by_ref.rs:59 :40
43+ error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: 8 byte)
44+ --> $DIR/trivially_copy_pass_by_ref.rs:61 :40
4545 |
4646LL | fn bad(&self, x: &u32, y: &Foo, z: &Baz) {}
4747 | ^^^^ help: consider passing by value instead: `Baz`
4848
49- error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte)
50- --> $DIR/trivially_copy_pass_by_ref.rs:61 :16
49+ error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: 8 byte)
50+ --> $DIR/trivially_copy_pass_by_ref.rs:67 :16
5151 |
5252LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {}
5353 | ^^^^ help: consider passing by value instead: `u32`
5454
55- error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte)
56- --> $DIR/trivially_copy_pass_by_ref.rs:61 :25
55+ error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: 8 byte)
56+ --> $DIR/trivially_copy_pass_by_ref.rs:67 :25
5757 |
5858LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {}
5959 | ^^^^ help: consider passing by value instead: `Foo`
6060
61- error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte)
62- --> $DIR/trivially_copy_pass_by_ref.rs:61 :34
61+ error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: 8 byte)
62+ --> $DIR/trivially_copy_pass_by_ref.rs:67 :34
6363 |
6464LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {}
6565 | ^^^^ help: consider passing by value instead: `Baz`
6666
67- error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte)
68- --> $DIR/trivially_copy_pass_by_ref.rs:63 :35
67+ error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: 8 byte)
68+ --> $DIR/trivially_copy_pass_by_ref.rs:72 :35
6969 |
7070LL | fn bad_issue7518(self, other: &Self) {}
7171 | ^^^^^ help: consider passing by value instead: `Self`
7272
73- error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte)
74- --> $DIR/trivially_copy_pass_by_ref.rs:75 :16
73+ error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: 8 byte)
74+ --> $DIR/trivially_copy_pass_by_ref.rs:85 :16
7575 |
7676LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {}
7777 | ^^^^ help: consider passing by value instead: `u32`
7878
79- error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte)
80- --> $DIR/trivially_copy_pass_by_ref.rs:75 :25
79+ error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: 8 byte)
80+ --> $DIR/trivially_copy_pass_by_ref.rs:85 :25
8181 |
8282LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {}
8383 | ^^^^ help: consider passing by value instead: `Foo`
8484
85- error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte)
86- --> $DIR/trivially_copy_pass_by_ref.rs:75 :34
85+ error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: 8 byte)
86+ --> $DIR/trivially_copy_pass_by_ref.rs:85 :34
8787 |
8888LL | fn bad2(x: &u32, y: &Foo, z: &Baz) {}
8989 | ^^^^ help: consider passing by value instead: `Baz`
9090
91- error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte)
92- --> $DIR/trivially_copy_pass_by_ref.rs:79 :34
91+ error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: 8 byte)
92+ --> $DIR/trivially_copy_pass_by_ref.rs:92 :34
9393 |
9494LL | fn trait_method(&self, _foo: &Foo);
9595 | ^^^^ help: consider passing by value instead: `Foo`
9696
97- error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte)
98- --> $DIR/trivially_copy_pass_by_ref.rs:111 :21
97+ error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: 8 byte)
98+ --> $DIR/trivially_copy_pass_by_ref.rs:125 :21
9999 |
100100LL | fn foo_never(x: &i32) {
101101 | ^^^^ help: consider passing by value instead: `i32`
102102
103- error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte)
104- --> $DIR/trivially_copy_pass_by_ref.rs:116 :15
103+ error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: 8 byte)
104+ --> $DIR/trivially_copy_pass_by_ref.rs:131 :15
105105 |
106106LL | fn foo(x: &i32) {
107107 | ^^^^ help: consider passing by value instead: `i32`
108108
109- error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: N byte)
110- --> $DIR/trivially_copy_pass_by_ref.rs:143 :37
109+ error: this argument (N byte) is passed by reference, but would be more efficient if passed by value (limit: 8 byte)
110+ --> $DIR/trivially_copy_pass_by_ref.rs:159 :37
111111 |
112112LL | fn _unrelated_lifetimes<'a, 'b>(_x: &'a u32, y: &'b u32) -> &'b u32 {
113113 | ^^^^^^^ help: consider passing by value instead: `u32`
0 commit comments