|
1 |
| -error: methods called `from_*` usually take no self; consider choosing a less ambiguous name |
| 1 | +error: methods called `from_*` usually take no self |
2 | 2 | --> $DIR/wrong_self_convention.rs:18:17
|
3 | 3 | |
|
4 | 4 | LL | fn from_i32(self) {}
|
5 | 5 | | ^^^^
|
6 | 6 | |
|
7 | 7 | = note: `-D clippy::wrong-self-convention` implied by `-D warnings`
|
| 8 | + = help: consider choosing a less ambiguous name |
8 | 9 |
|
9 |
| -error: methods called `from_*` usually take no self; consider choosing a less ambiguous name |
| 10 | +error: methods called `from_*` usually take no self |
10 | 11 | --> $DIR/wrong_self_convention.rs:24:21
|
11 | 12 | |
|
12 | 13 | LL | pub fn from_i64(self) {}
|
13 | 14 | | ^^^^
|
| 15 | + | |
| 16 | + = help: consider choosing a less ambiguous name |
14 | 17 |
|
15 |
| -error: methods called `as_*` usually take self by reference or self by mutable reference; consider choosing a less ambiguous name |
| 18 | +error: methods called `as_*` usually take self by reference or self by mutable reference |
16 | 19 | --> $DIR/wrong_self_convention.rs:36:15
|
17 | 20 | |
|
18 | 21 | LL | fn as_i32(self) {}
|
19 | 22 | | ^^^^
|
| 23 | + | |
| 24 | + = help: consider choosing a less ambiguous name |
20 | 25 |
|
21 |
| -error: methods called `into_*` usually take self by value; consider choosing a less ambiguous name |
| 26 | +error: methods called `into_*` usually take self by value |
22 | 27 | --> $DIR/wrong_self_convention.rs:38:17
|
23 | 28 | |
|
24 | 29 | LL | fn into_i32(&self) {}
|
25 | 30 | | ^^^^^
|
| 31 | + | |
| 32 | + = help: consider choosing a less ambiguous name |
26 | 33 |
|
27 |
| -error: methods called `is_*` usually take self by reference or no self; consider choosing a less ambiguous name |
| 34 | +error: methods called `is_*` usually take self by reference or no self |
28 | 35 | --> $DIR/wrong_self_convention.rs:40:15
|
29 | 36 | |
|
30 | 37 | LL | fn is_i32(self) {}
|
31 | 38 | | ^^^^
|
| 39 | + | |
| 40 | + = help: consider choosing a less ambiguous name |
32 | 41 |
|
33 |
| -error: methods called `to_*` usually take self by reference; consider choosing a less ambiguous name |
| 42 | +error: methods called `to_*` usually take self by reference |
34 | 43 | --> $DIR/wrong_self_convention.rs:42:15
|
35 | 44 | |
|
36 | 45 | LL | fn to_i32(self) {}
|
37 | 46 | | ^^^^
|
| 47 | + | |
| 48 | + = help: consider choosing a less ambiguous name |
38 | 49 |
|
39 |
| -error: methods called `from_*` usually take no self; consider choosing a less ambiguous name |
| 50 | +error: methods called `from_*` usually take no self |
40 | 51 | --> $DIR/wrong_self_convention.rs:44:17
|
41 | 52 | |
|
42 | 53 | LL | fn from_i32(self) {}
|
43 | 54 | | ^^^^
|
| 55 | + | |
| 56 | + = help: consider choosing a less ambiguous name |
44 | 57 |
|
45 |
| -error: methods called `as_*` usually take self by reference or self by mutable reference; consider choosing a less ambiguous name |
| 58 | +error: methods called `as_*` usually take self by reference or self by mutable reference |
46 | 59 | --> $DIR/wrong_self_convention.rs:46:19
|
47 | 60 | |
|
48 | 61 | LL | pub fn as_i64(self) {}
|
49 | 62 | | ^^^^
|
| 63 | + | |
| 64 | + = help: consider choosing a less ambiguous name |
50 | 65 |
|
51 |
| -error: methods called `into_*` usually take self by value; consider choosing a less ambiguous name |
| 66 | +error: methods called `into_*` usually take self by value |
52 | 67 | --> $DIR/wrong_self_convention.rs:47:21
|
53 | 68 | |
|
54 | 69 | LL | pub fn into_i64(&self) {}
|
55 | 70 | | ^^^^^
|
| 71 | + | |
| 72 | + = help: consider choosing a less ambiguous name |
56 | 73 |
|
57 |
| -error: methods called `is_*` usually take self by reference or no self; consider choosing a less ambiguous name |
| 74 | +error: methods called `is_*` usually take self by reference or no self |
58 | 75 | --> $DIR/wrong_self_convention.rs:48:19
|
59 | 76 | |
|
60 | 77 | LL | pub fn is_i64(self) {}
|
61 | 78 | | ^^^^
|
| 79 | + | |
| 80 | + = help: consider choosing a less ambiguous name |
62 | 81 |
|
63 |
| -error: methods called `to_*` usually take self by reference; consider choosing a less ambiguous name |
| 82 | +error: methods called `to_*` usually take self by reference |
64 | 83 | --> $DIR/wrong_self_convention.rs:49:19
|
65 | 84 | |
|
66 | 85 | LL | pub fn to_i64(self) {}
|
67 | 86 | | ^^^^
|
| 87 | + | |
| 88 | + = help: consider choosing a less ambiguous name |
68 | 89 |
|
69 |
| -error: methods called `from_*` usually take no self; consider choosing a less ambiguous name |
| 90 | +error: methods called `from_*` usually take no self |
70 | 91 | --> $DIR/wrong_self_convention.rs:50:21
|
71 | 92 | |
|
72 | 93 | LL | pub fn from_i64(self) {}
|
73 | 94 | | ^^^^
|
| 95 | + | |
| 96 | + = help: consider choosing a less ambiguous name |
74 | 97 |
|
75 |
| -error: methods called `as_*` usually take self by reference or self by mutable reference; consider choosing a less ambiguous name |
| 98 | +error: methods called `as_*` usually take self by reference or self by mutable reference |
76 | 99 | --> $DIR/wrong_self_convention.rs:95:19
|
77 | 100 | |
|
78 | 101 | LL | fn as_i32(self) {}
|
79 | 102 | | ^^^^
|
| 103 | + | |
| 104 | + = help: consider choosing a less ambiguous name |
80 | 105 |
|
81 |
| -error: methods called `into_*` usually take self by value; consider choosing a less ambiguous name |
| 106 | +error: methods called `into_*` usually take self by value |
82 | 107 | --> $DIR/wrong_self_convention.rs:98:25
|
83 | 108 | |
|
84 | 109 | LL | fn into_i32_ref(&self) {}
|
85 | 110 | | ^^^^^
|
| 111 | + | |
| 112 | + = help: consider choosing a less ambiguous name |
86 | 113 |
|
87 |
| -error: methods called `is_*` usually take self by reference or no self; consider choosing a less ambiguous name |
| 114 | +error: methods called `is_*` usually take self by reference or no self |
88 | 115 | --> $DIR/wrong_self_convention.rs:100:19
|
89 | 116 | |
|
90 | 117 | LL | fn is_i32(self) {}
|
91 | 118 | | ^^^^
|
| 119 | + | |
| 120 | + = help: consider choosing a less ambiguous name |
92 | 121 |
|
93 |
| -error: methods called `to_*` usually take self by reference; consider choosing a less ambiguous name |
| 122 | +error: methods called `to_*` usually take self by reference |
94 | 123 | --> $DIR/wrong_self_convention.rs:102:19
|
95 | 124 | |
|
96 | 125 | LL | fn to_i32(self) {}
|
97 | 126 | | ^^^^
|
| 127 | + | |
| 128 | + = help: consider choosing a less ambiguous name |
98 | 129 |
|
99 |
| -error: methods called `from_*` usually take no self; consider choosing a less ambiguous name |
| 130 | +error: methods called `from_*` usually take no self |
100 | 131 | --> $DIR/wrong_self_convention.rs:104:21
|
101 | 132 | |
|
102 | 133 | LL | fn from_i32(self) {}
|
103 | 134 | | ^^^^
|
| 135 | + | |
| 136 | + = help: consider choosing a less ambiguous name |
104 | 137 |
|
105 |
| -error: methods called `as_*` usually take self by reference or self by mutable reference; consider choosing a less ambiguous name |
| 138 | +error: methods called `as_*` usually take self by reference or self by mutable reference |
106 | 139 | --> $DIR/wrong_self_convention.rs:119:19
|
107 | 140 | |
|
108 | 141 | LL | fn as_i32(self);
|
109 | 142 | | ^^^^
|
| 143 | + | |
| 144 | + = help: consider choosing a less ambiguous name |
110 | 145 |
|
111 |
| -error: methods called `into_*` usually take self by value; consider choosing a less ambiguous name |
| 146 | +error: methods called `into_*` usually take self by value |
112 | 147 | --> $DIR/wrong_self_convention.rs:122:25
|
113 | 148 | |
|
114 | 149 | LL | fn into_i32_ref(&self);
|
115 | 150 | | ^^^^^
|
| 151 | + | |
| 152 | + = help: consider choosing a less ambiguous name |
116 | 153 |
|
117 |
| -error: methods called `is_*` usually take self by reference or no self; consider choosing a less ambiguous name |
| 154 | +error: methods called `is_*` usually take self by reference or no self |
118 | 155 | --> $DIR/wrong_self_convention.rs:124:19
|
119 | 156 | |
|
120 | 157 | LL | fn is_i32(self);
|
121 | 158 | | ^^^^
|
| 159 | + | |
| 160 | + = help: consider choosing a less ambiguous name |
122 | 161 |
|
123 |
| -error: methods called `to_*` usually take self by reference; consider choosing a less ambiguous name |
| 162 | +error: methods called `to_*` usually take self by reference |
124 | 163 | --> $DIR/wrong_self_convention.rs:126:19
|
125 | 164 | |
|
126 | 165 | LL | fn to_i32(self);
|
127 | 166 | | ^^^^
|
| 167 | + | |
| 168 | + = help: consider choosing a less ambiguous name |
128 | 169 |
|
129 |
| -error: methods called `from_*` usually take no self; consider choosing a less ambiguous name |
| 170 | +error: methods called `from_*` usually take no self |
130 | 171 | --> $DIR/wrong_self_convention.rs:128:21
|
131 | 172 | |
|
132 | 173 | LL | fn from_i32(self);
|
133 | 174 | | ^^^^
|
| 175 | + | |
| 176 | + = help: consider choosing a less ambiguous name |
134 | 177 |
|
135 |
| -error: methods called `into_*` usually take self by value; consider choosing a less ambiguous name |
| 178 | +error: methods called `into_*` usually take self by value |
136 | 179 | --> $DIR/wrong_self_convention.rs:146:25
|
137 | 180 | |
|
138 | 181 | LL | fn into_i32_ref(&self);
|
139 | 182 | | ^^^^^
|
| 183 | + | |
| 184 | + = help: consider choosing a less ambiguous name |
140 | 185 |
|
141 |
| -error: methods called `from_*` usually take no self; consider choosing a less ambiguous name |
| 186 | +error: methods called `from_*` usually take no self |
142 | 187 | --> $DIR/wrong_self_convention.rs:152:21
|
143 | 188 | |
|
144 | 189 | LL | fn from_i32(self);
|
145 | 190 | | ^^^^
|
| 191 | + | |
| 192 | + = help: consider choosing a less ambiguous name |
146 | 193 |
|
147 | 194 | error: aborting due to 24 previous errors
|
148 | 195 |
|
0 commit comments