|
1 | | -error: the type of the `self` parameter is arbitrary |
| 1 | +error: the type of the `self` parameter does not need to be arbitrary |
2 | 2 | --> $DIR/needless_arbitrary_self_type.rs:12:16 |
3 | 3 | | |
4 | 4 | LL | pub fn bad(self: Self) { |
5 | 5 | | ^^^^^^^^^^ help: consider to change this parameter to: `self` |
6 | 6 | | |
7 | 7 | = note: `-D clippy::needless-arbitrary-self-type` implied by `-D warnings` |
8 | 8 |
|
9 | | -error: the type of the `self` parameter is arbitrary |
| 9 | +error: the type of the `self` parameter does not need to be arbitrary |
10 | 10 | --> $DIR/needless_arbitrary_self_type.rs:20:20 |
11 | 11 | | |
12 | 12 | LL | pub fn mut_bad(mut self: Self) { |
13 | 13 | | ^^^^^^^^^^^^^^ help: consider to change this parameter to: `mut self` |
14 | 14 |
|
15 | | -error: the type of the `self` parameter is arbitrary |
| 15 | +error: the type of the `self` parameter does not need to be arbitrary |
16 | 16 | --> $DIR/needless_arbitrary_self_type.rs:28:20 |
17 | 17 | | |
18 | 18 | LL | pub fn ref_bad(self: &Self) { |
19 | 19 | | ^^^^^^^^^^^ help: consider to change this parameter to: `&self` |
20 | 20 |
|
21 | | -error: the type of the `self` parameter is arbitrary |
22 | | - --> $DIR/needless_arbitrary_self_type.rs:32:38 |
| 21 | +error: the type of the `self` parameter does not need to be arbitrary |
| 22 | + --> $DIR/needless_arbitrary_self_type.rs:36:38 |
23 | 23 | | |
24 | 24 | LL | pub fn ref_bad_with_lifetime<'a>(self: &'a Self) { |
25 | 25 | | ^^^^^^^^^^^^^^ help: consider to change this parameter to: `&'a self` |
26 | 26 |
|
27 | | -error: the type of the `self` parameter is arbitrary |
28 | | - --> $DIR/needless_arbitrary_self_type.rs:40:24 |
| 27 | +error: the type of the `self` parameter does not need to be arbitrary |
| 28 | + --> $DIR/needless_arbitrary_self_type.rs:44:24 |
29 | 29 | | |
30 | 30 | LL | pub fn mut_ref_bad(self: &mut Self) { |
31 | 31 | | ^^^^^^^^^^^^^^^ help: consider to change this parameter to: `&mut self` |
32 | 32 |
|
33 | | -error: the type of the `self` parameter is arbitrary |
34 | | - --> $DIR/needless_arbitrary_self_type.rs:44:42 |
| 33 | +error: the type of the `self` parameter does not need to be arbitrary |
| 34 | + --> $DIR/needless_arbitrary_self_type.rs:52:42 |
35 | 35 | | |
36 | 36 | LL | pub fn mut_ref_bad_with_lifetime<'a>(self: &'a mut Self) { |
37 | 37 | | ^^^^^^^^^^^^^^^^^^ help: consider to change this parameter to: `&'a mut self` |
38 | 38 |
|
39 | | -error: the type of the `self` parameter is arbitrary |
40 | | - --> $DIR/needless_arbitrary_self_type.rs:52:28 |
| 39 | +error: the type of the `self` parameter does not need to be arbitrary |
| 40 | + --> $DIR/needless_arbitrary_self_type.rs:60:28 |
41 | 41 | | |
42 | 42 | LL | pub fn mut_ref_mut_bad(mut self: &mut Self) { |
43 | 43 | | ^^^^^^^^^^^^^^^^^^^ help: consider to change this parameter to: `&mut self` |
|
0 commit comments