Skip to content

Commit fe5613f

Browse files
committed
Forest::push_initial_strands_instantiated merged into Forest::build_table
1 parent aad6aa5 commit fe5613f

File tree

2 files changed

+3
-24
lines changed

2 files changed

+3
-24
lines changed

chalk-engine/src/logic.rs

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -241,30 +241,8 @@ impl<C: Context> Forest<C> {
241241
table_idx: TableIndex,
242242
goal: C::UCanonicalGoalInEnvironment,
243243
) -> Table<C> {
244-
// Instantiate the table goal with fresh inference variables.
245-
let table = Table::<C>::new(goal.clone(), context.is_coinductive(&goal));
246-
let table_goal = table.table_goal.clone();
247-
let (infer, subst, environment, goal) = context.instantiate_ucanonical_goal(&table_goal);
248-
Self::push_initial_strands_instantiated(
249-
context,
250-
table_idx,
251-
table,
252-
infer,
253-
subst,
254-
environment,
255-
goal,
256-
)
257-
}
258-
259-
fn push_initial_strands_instantiated(
260-
context: &impl ContextOps<C>,
261-
table_idx: TableIndex,
262-
mut table: Table<C>,
263-
mut infer: C::InferenceTable,
264-
subst: C::Substitution,
265-
environment: C::Environment,
266-
goal: C::Goal,
267-
) -> Table<C> {
244+
let mut table = Table::new(goal.clone(), context.is_coinductive(&goal));
245+
let (mut infer, subst, environment, goal) = context.instantiate_ucanonical_goal(&goal);
268246
match context.into_hh_goal(goal) {
269247
HhGoal::DomainGoal(domain_goal) => {
270248
match context.program_clauses(&environment, &domain_goal, &mut infer) {

tests/integration/panic.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ struct MockDatabase {
3131
/// struct Foo { }
3232
/// trait Bar { }
3333
/// impl Bar for Foo { }
34+
// FIXME: Check if items returned from functions of this struct can be simplified
3435
#[allow(unused_variables)]
3536
impl RustIrDatabase<ChalkIr> for MockDatabase {
3637
fn custom_clauses(&self) -> Vec<ProgramClause<ChalkIr>> {

0 commit comments

Comments
 (0)