Skip to content

Commit 4d3f6a8

Browse files
committed
Add self param to intern_goals
1 parent 4895b95 commit 4d3f6a8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

chalk-ir/src/interner.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ pub trait Interner: Debug + Copy + Eq + Ord + Hash {
171171
/// normally invoked directly; instead, you invoke
172172
/// `GoalsData::intern` (which will ultimately call this
173173
/// 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;
175175

176176
/// Lookup the `GoalsData` that was interned to create a `InternedGoals`.
177177
fn goals_data(goals: &Self::InternedGoals) -> &[Goal<Self>];
@@ -303,7 +303,7 @@ mod default {
303303
goal
304304
}
305305

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>> {
307307
data.into_iter().collect()
308308
}
309309

chalk-ir/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ impl<I: Interner> Goals<I> {
10311031
pub fn from(interner: &I, goals: impl IntoIterator<Item = impl CastTo<Goal<I>>>) -> Self {
10321032
use crate::cast::Caster;
10331033
Goals {
1034-
goals: I::intern_goals(goals.into_iter().casted(interner)),
1034+
goals: I::intern_goals(interner, goals.into_iter().casted(interner)),
10351035
}
10361036
}
10371037

0 commit comments

Comments
 (0)