1 error: methods called `from_*` usually take no self; consider choosing a less ambiguous name
2 --> $DIR/wrong_self_convention.rs:21:17
4 21 | fn from_i32(self) {}
7 note: lint level defined here
8 --> $DIR/wrong_self_convention.rs:4:9
10 4 | #![deny(wrong_self_convention)]
11 | ^^^^^^^^^^^^^^^^^^^^^
13 error: methods called `from_*` usually take no self; consider choosing a less ambiguous name
14 --> $DIR/wrong_self_convention.rs:27:21
16 27 | pub fn from_i64(self) {}
19 error: methods called `as_*` usually take self by reference or self by mutable reference; consider choosing a less ambiguous name
20 --> $DIR/wrong_self_convention.rs:38:15
22 38 | fn as_i32(self) {}
25 error: methods called `into_*` usually take self by value; consider choosing a less ambiguous name
26 --> $DIR/wrong_self_convention.rs:40:17
28 40 | fn into_i32(&self) {}
31 error: methods called `is_*` usually take self by reference or no self; consider choosing a less ambiguous name
32 --> $DIR/wrong_self_convention.rs:42:15
34 42 | fn is_i32(self) {}
37 error: methods called `to_*` usually take self by reference; consider choosing a less ambiguous name
38 --> $DIR/wrong_self_convention.rs:44:15
40 44 | fn to_i32(self) {}
43 error: methods called `from_*` usually take no self; consider choosing a less ambiguous name
44 --> $DIR/wrong_self_convention.rs:46:17
46 46 | fn from_i32(self) {}
49 error: methods called `as_*` usually take self by reference or self by mutable reference; consider choosing a less ambiguous name
50 --> $DIR/wrong_self_convention.rs:48:19
52 48 | pub fn as_i64(self) {}
55 error: methods called `into_*` usually take self by value; consider choosing a less ambiguous name
56 --> $DIR/wrong_self_convention.rs:49:21
58 49 | pub fn into_i64(&self) {}
61 error: methods called `is_*` usually take self by reference or no self; consider choosing a less ambiguous name
62 --> $DIR/wrong_self_convention.rs:50:19
64 50 | pub fn is_i64(self) {}
67 error: methods called `to_*` usually take self by reference; consider choosing a less ambiguous name
68 --> $DIR/wrong_self_convention.rs:51:19
70 51 | pub fn to_i64(self) {}
73 error: methods called `from_*` usually take no self; consider choosing a less ambiguous name
74 --> $DIR/wrong_self_convention.rs:52:21
76 52 | pub fn from_i64(self) {}
79 error: aborting due to 12 previous errors