Skip to content

Commit e5c943d

Browse files
committed
Remove an ineffective complex change
1 parent 5f95957 commit e5c943d

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

crates/formality-rust/src/prove.rs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ use formality_types::{
99
cast::{To, Upcast, Upcasted},
1010
collections::Set,
1111
grammar::{
12-
fresh_bound_var, AdtId, AliasTy, Binder, ConstData, ParameterKind, Predicate, Relation,
13-
TraitId, Ty, Wc, Wcs, PR,
12+
fresh_bound_var, AdtId, AliasTy, Binder, ParameterKind, Predicate, Relation, TraitId, Ty,
13+
Wc, Wcs, PR,
1414
},
1515
seq,
1616
};
@@ -386,12 +386,9 @@ impl ToWcs for WhereClause {
386386
.map(|wc| Wc::for_all(&vars, wc))
387387
.collect()
388388
}
389-
WhereClauseData::TypeOfConst(ct, ty) => match ct.data() {
390-
// Concrete constants must have equal types
391-
ConstData::Value(_, t) => Relation::eq(ty, t).upcast(),
392-
// Generic constants must have where bounds constraining their type
393-
ConstData::Variable(_) => Predicate::ConstHasType(ct.clone(), ty.clone()).upcast(),
394-
},
389+
WhereClauseData::TypeOfConst(ct, ty) => {
390+
Predicate::ConstHasType(ct.clone(), ty.clone()).upcast()
391+
}
395392
}
396393
}
397394
}

0 commit comments

Comments
 (0)