1 error: methods called `from_*` usually take no `self`
2 --> $DIR/wrong_self_convention.rs:18:17
4 LL | fn from_i32(self) {}
7 = note: `-D clippy::wrong-self-convention` implied by `-D warnings`
8 = help: consider choosing a less ambiguous name
10 error: methods called `from_*` usually take no `self`
11 --> $DIR/wrong_self_convention.rs:24:21
13 LL | pub fn from_i64(self) {}
16 = help: consider choosing a less ambiguous name
18 error: methods called `as_*` usually take `self` by reference or `self` by mutable reference
19 --> $DIR/wrong_self_convention.rs:36:15
21 LL | fn as_i32(self) {}
24 = help: consider choosing a less ambiguous name
26 error: methods called `into_*` usually take `self` by value
27 --> $DIR/wrong_self_convention.rs:38:17
29 LL | fn into_i32(&self) {}
32 = help: consider choosing a less ambiguous name
34 error: methods called `is_*` usually take `self` by reference or no `self`
35 --> $DIR/wrong_self_convention.rs:40:15
37 LL | fn is_i32(self) {}
40 = help: consider choosing a less ambiguous name
42 error: methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference
43 --> $DIR/wrong_self_convention.rs:42:15
45 LL | fn to_i32(self) {}
48 = help: consider choosing a less ambiguous name
50 error: methods called `from_*` usually take no `self`
51 --> $DIR/wrong_self_convention.rs:44:17
53 LL | fn from_i32(self) {}
56 = help: consider choosing a less ambiguous name
58 error: methods called `as_*` usually take `self` by reference or `self` by mutable reference
59 --> $DIR/wrong_self_convention.rs:46:19
61 LL | pub fn as_i64(self) {}
64 = help: consider choosing a less ambiguous name
66 error: methods called `into_*` usually take `self` by value
67 --> $DIR/wrong_self_convention.rs:47:21
69 LL | pub fn into_i64(&self) {}
72 = help: consider choosing a less ambiguous name
74 error: methods called `is_*` usually take `self` by reference or no `self`
75 --> $DIR/wrong_self_convention.rs:48:19
77 LL | pub fn is_i64(self) {}
80 = help: consider choosing a less ambiguous name
82 error: methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference
83 --> $DIR/wrong_self_convention.rs:49:19
85 LL | pub fn to_i64(self) {}
88 = help: consider choosing a less ambiguous name
90 error: methods called `from_*` usually take no `self`
91 --> $DIR/wrong_self_convention.rs:50:21
93 LL | pub fn from_i64(self) {}
96 = help: consider choosing a less ambiguous name
98 error: methods called `as_*` usually take `self` by reference or `self` by mutable reference
99 --> $DIR/wrong_self_convention.rs:95:19
101 LL | fn as_i32(self) {}
104 = help: consider choosing a less ambiguous name
106 error: methods called `into_*` usually take `self` by value
107 --> $DIR/wrong_self_convention.rs:98:25
109 LL | fn into_i32_ref(&self) {}
112 = help: consider choosing a less ambiguous name
114 error: methods called `is_*` usually take `self` by reference or no `self`
115 --> $DIR/wrong_self_convention.rs:100:19
117 LL | fn is_i32(self) {}
120 = help: consider choosing a less ambiguous name
122 error: methods called `from_*` usually take no `self`
123 --> $DIR/wrong_self_convention.rs:104:21
125 LL | fn from_i32(self) {}
128 = help: consider choosing a less ambiguous name
130 error: methods called `as_*` usually take `self` by reference or `self` by mutable reference
131 --> $DIR/wrong_self_convention.rs:119:19
133 LL | fn as_i32(self);
136 = help: consider choosing a less ambiguous name
138 error: methods called `into_*` usually take `self` by value
139 --> $DIR/wrong_self_convention.rs:122:25
141 LL | fn into_i32_ref(&self);
144 = help: consider choosing a less ambiguous name
146 error: methods called `is_*` usually take `self` by reference or no `self`
147 --> $DIR/wrong_self_convention.rs:124:19
149 LL | fn is_i32(self);
152 = help: consider choosing a less ambiguous name
154 error: methods called `from_*` usually take no `self`
155 --> $DIR/wrong_self_convention.rs:128:21
157 LL | fn from_i32(self);
160 = help: consider choosing a less ambiguous name
162 error: methods called `into_*` usually take `self` by value
163 --> $DIR/wrong_self_convention.rs:146:25
165 LL | fn into_i32_ref(&self);
168 = help: consider choosing a less ambiguous name
170 error: methods called `from_*` usually take no `self`
171 --> $DIR/wrong_self_convention.rs:152:21
173 LL | fn from_i32(self);
176 = help: consider choosing a less ambiguous name
178 error: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value
179 --> $DIR/wrong_self_convention.rs:181:22
181 LL | fn to_u64_v2(&self) -> u64 {
184 = help: consider choosing a less ambiguous name
186 error: methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference
187 --> $DIR/wrong_self_convention.rs:190:19
189 LL | fn to_u64(self) -> u64 {
192 = help: consider choosing a less ambiguous name
194 error: aborting due to 24 previous errors