@@ -79,58 +79,70 @@ LL | fn as_i32(self) {}
7979 | ^^^^
8080
8181error: methods called `into_*` usually take self by value; consider choosing a less ambiguous name
82- --> $DIR/wrong_self_convention.rs:97:21
82+ --> $DIR/wrong_self_convention.rs:98:25
8383 |
84- LL | fn into_i32 (&self) {}
85- | ^^^^^
84+ LL | fn into_i32_ref (&self) {}
85+ | ^^^^^
8686
8787error: methods called `is_*` usually take self by reference or no self; consider choosing a less ambiguous name
88- --> $DIR/wrong_self_convention.rs:99 :19
88+ --> $DIR/wrong_self_convention.rs:100 :19
8989 |
9090LL | fn is_i32(self) {}
9191 | ^^^^
9292
9393error: methods called `to_*` usually take self by reference; consider choosing a less ambiguous name
94- --> $DIR/wrong_self_convention.rs:101 :19
94+ --> $DIR/wrong_self_convention.rs:102 :19
9595 |
9696LL | fn to_i32(self) {}
9797 | ^^^^
9898
9999error: methods called `from_*` usually take no self; consider choosing a less ambiguous name
100- --> $DIR/wrong_self_convention.rs:103 :21
100+ --> $DIR/wrong_self_convention.rs:104 :21
101101 |
102102LL | fn from_i32(self) {}
103103 | ^^^^
104104
105105error: methods called `as_*` usually take self by reference or self by mutable reference; consider choosing a less ambiguous name
106- --> $DIR/wrong_self_convention.rs:118 :19
106+ --> $DIR/wrong_self_convention.rs:119 :19
107107 |
108108LL | fn as_i32(self);
109109 | ^^^^
110110
111111error: methods called `into_*` usually take self by value; consider choosing a less ambiguous name
112- --> $DIR/wrong_self_convention.rs:120:21
112+ --> $DIR/wrong_self_convention.rs:122:25
113113 |
114- LL | fn into_i32 (&self);
115- | ^^^^^
114+ LL | fn into_i32_ref (&self);
115+ | ^^^^^
116116
117117error: methods called `is_*` usually take self by reference or no self; consider choosing a less ambiguous name
118- --> $DIR/wrong_self_convention.rs:122 :19
118+ --> $DIR/wrong_self_convention.rs:124 :19
119119 |
120120LL | fn is_i32(self);
121121 | ^^^^
122122
123123error: methods called `to_*` usually take self by reference; consider choosing a less ambiguous name
124- --> $DIR/wrong_self_convention.rs:124 :19
124+ --> $DIR/wrong_self_convention.rs:126 :19
125125 |
126126LL | fn to_i32(self);
127127 | ^^^^
128128
129129error: methods called `from_*` usually take no self; consider choosing a less ambiguous name
130- --> $DIR/wrong_self_convention.rs:126:21
130+ --> $DIR/wrong_self_convention.rs:128:21
131+ |
132+ LL | fn from_i32(self);
133+ | ^^^^
134+
135+ error: methods called `into_*` usually take self by value; consider choosing a less ambiguous name
136+ --> $DIR/wrong_self_convention.rs:146:25
137+ |
138+ LL | fn into_i32_ref(&self);
139+ | ^^^^^
140+
141+ error: methods called `from_*` usually take no self; consider choosing a less ambiguous name
142+ --> $DIR/wrong_self_convention.rs:152:21
131143 |
132144LL | fn from_i32(self);
133145 | ^^^^
134146
135- error: aborting due to 22 previous errors
147+ error: aborting due to 24 previous errors
136148
0 commit comments