@@ -171,7 +171,7 @@ pub trait Interner: Debug + Copy + Eq + Ord + Hash {
171
171
/// normally invoked directly; instead, you invoke
172
172
/// `GoalsData::intern` (which will ultimately call this
173
173
/// method).
174
- fn intern_goals ( data : impl IntoIterator < Item = Goal < Self > > ) -> Self :: InternedGoals ;
174
+ fn intern_goals ( & self , data : impl IntoIterator < Item = Goal < Self > > ) -> Self :: InternedGoals ;
175
175
176
176
/// Lookup the `GoalsData` that was interned to create a `InternedGoals`.
177
177
fn goals_data ( goals : & Self :: InternedGoals ) -> & [ Goal < Self > ] ;
@@ -181,6 +181,7 @@ pub trait Interner: Debug + Copy + Eq + Ord + Hash {
181
181
/// `SubstitutionData::intern` (which will ultimately call this
182
182
/// method).
183
183
fn intern_substitution < E > (
184
+ & self ,
184
185
data : impl IntoIterator < Item = Result < Parameter < Self > , E > > ,
185
186
) -> Result < Self :: InternedSubstitution , E > ;
186
187
@@ -303,7 +304,10 @@ mod default {
303
304
goal
304
305
}
305
306
306
- fn intern_goals ( data : impl IntoIterator < Item = Goal < ChalkIr > > ) -> Vec < Goal < ChalkIr > > {
307
+ fn intern_goals (
308
+ & self ,
309
+ data : impl IntoIterator < Item = Goal < ChalkIr > > ,
310
+ ) -> Vec < Goal < ChalkIr > > {
307
311
data. into_iter ( ) . collect ( )
308
312
}
309
313
@@ -312,6 +316,7 @@ mod default {
312
316
}
313
317
314
318
fn intern_substitution < E > (
319
+ & self ,
315
320
data : impl IntoIterator < Item = Result < Parameter < ChalkIr > , E > > ,
316
321
) -> Result < Vec < Parameter < ChalkIr > > , E > {
317
322
data. into_iter ( ) . collect ( )
0 commit comments