Skip to content

Commit

Permalink
Remove unneeded program clauses code for assoc consts
Browse files Browse the repository at this point in the history
  • Loading branch information
detrumi committed Feb 27, 2021
1 parent b72f409 commit 40515f2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
5 changes: 0 additions & 5 deletions chalk-integration/src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,6 @@ fn environment(db: &dyn LoweringDatabase) -> Result<Arc<ProgramEnvironment>, Cha
.iter()
.map(|&atv_id| db.associated_ty_value(atv_id))
.for_each(|atv| atv.to_program_clauses(builder, &env));
datum
.associated_const_value_ids
.iter()
.map(|&acv_id| db.associated_const_value(acv_id))
.for_each(|acv| acv.to_program_clauses(builder, &env));
}
}

Expand Down
6 changes: 0 additions & 6 deletions chalk-solve/src/clauses.rs
Original file line number Diff line number Diff line change
Expand Up @@ -733,12 +733,6 @@ fn push_program_clauses_for_associated_values_in_impls_of<I: Interner>(
debug!(?atv_id, ?atv);
atv.to_program_clauses(builder, environment);
}

for &acv_id in &impl_datum.associated_const_value_ids {
let acv = builder.db.associated_const_value(acv_id);
debug!(?acv_id, ?acv);
acv.to_program_clauses(builder, environment);
}
}
}

Expand Down
6 changes: 0 additions & 6 deletions chalk-solve/src/clauses/program_clauses.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,6 @@ impl<I: Interner> ToProgramClauses<I> for AssociatedTyValue<I> {
}
}

impl<I: Interner> ToProgramClauses<I> for AssociatedConstValue<I> {
fn to_program_clauses(&self, builder: &mut ClauseBuilder<'_, I>, environment: &Environment<I>) {
todo!()
}
}

impl<I: Interner> ToProgramClauses<I> for OpaqueTyDatum<I> {
/// Given `opaque type T<U>: A + B = HiddenTy where U: C;`, we generate:
///
Expand Down

0 comments on commit 40515f2

Please sign in to comment.