Skip to content

Commit

Permalink
Only store projection equate for solved goals
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinleroy committed Aug 27, 2024
1 parent 3528b1e commit b7727c4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions crates/argus/src/proof_tree/serialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,12 @@ impl SerializedTreeVisitor<'_> {
}

fn check_goal_projection(&mut self, goal: &InspectGoal) {
if let ty::PredicateKind::AliasRelate(
t1,
t2,
ty::AliasRelationDirection::Equate,
) = goal.goal().predicate.kind().skip_binder()
if goal.result().is_yes()
&& let ty::PredicateKind::AliasRelate(
t1,
t2,
ty::AliasRelationDirection::Equate,
) = goal.goal().predicate.kind().skip_binder()
&& let Some(mut t1) = t1.ty()
&& let Some(mut t2) = t2.ty()
// Disallow projections involving two aliases
Expand Down

0 comments on commit b7727c4

Please sign in to comment.