File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -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 > ] ;
@@ -303,7 +303,7 @@ mod default {
303
303
goal
304
304
}
305
305
306
- fn intern_goals ( data : impl IntoIterator < Item = Goal < ChalkIr > > ) -> Vec < Goal < ChalkIr > > {
306
+ fn intern_goals ( & self , data : impl IntoIterator < Item = Goal < ChalkIr > > ) -> Vec < Goal < ChalkIr > > {
307
307
data. into_iter ( ) . collect ( )
308
308
}
309
309
Original file line number Diff line number Diff line change @@ -1031,7 +1031,7 @@ impl<I: Interner> Goals<I> {
1031
1031
pub fn from ( interner : & I , goals : impl IntoIterator < Item = impl CastTo < Goal < I > > > ) -> Self {
1032
1032
use crate :: cast:: Caster ;
1033
1033
Goals {
1034
- goals : I :: intern_goals ( goals. into_iter ( ) . casted ( interner) ) ,
1034
+ goals : I :: intern_goals ( interner , goals. into_iter ( ) . casted ( interner) ) ,
1035
1035
}
1036
1036
}
1037
1037
You can’t perform that action at this time.
0 commit comments