@@ -79,58 +79,70 @@ LL | fn as_i32(self) {}
79
79
| ^^^^
80
80
81
81
error: 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
83
83
|
84
- LL | fn into_i32 (&self) {}
85
- | ^^^^^
84
+ LL | fn into_i32_ref (&self) {}
85
+ | ^^^^^
86
86
87
87
error: 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
89
89
|
90
90
LL | fn is_i32(self) {}
91
91
| ^^^^
92
92
93
93
error: 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
95
95
|
96
96
LL | fn to_i32(self) {}
97
97
| ^^^^
98
98
99
99
error: 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
101
101
|
102
102
LL | fn from_i32(self) {}
103
103
| ^^^^
104
104
105
105
error: 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
107
107
|
108
108
LL | fn as_i32(self);
109
109
| ^^^^
110
110
111
111
error: 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
113
113
|
114
- LL | fn into_i32 (&self);
115
- | ^^^^^
114
+ LL | fn into_i32_ref (&self);
115
+ | ^^^^^
116
116
117
117
error: 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
119
119
|
120
120
LL | fn is_i32(self);
121
121
| ^^^^
122
122
123
123
error: 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
125
125
|
126
126
LL | fn to_i32(self);
127
127
| ^^^^
128
128
129
129
error: 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
131
143
|
132
144
LL | fn from_i32(self);
133
145
| ^^^^
134
146
135
- error: aborting due to 22 previous errors
147
+ error: aborting due to 24 previous errors
136
148
0 commit comments