1
Fork 0

Remove {ast,hir}::WhereEqPredicate::id.

These fields are unused.
This commit is contained in:
Nicholas Nethercote 2022-07-29 10:16:25 +10:00
parent 40336865fe
commit 3e04fed6fa
7 changed files with 4 additions and 16 deletions

View file

@ -1498,9 +1498,8 @@ impl<'hir> LoweringContext<'_, 'hir> {
),
in_where_clause: true,
}),
WherePredicate::EqPredicate(WhereEqPredicate { id, ref lhs_ty, ref rhs_ty, span }) => {
WherePredicate::EqPredicate(WhereEqPredicate { ref lhs_ty, ref rhs_ty, span }) => {
hir::WherePredicate::EqPredicate(hir::WhereEqPredicate {
hir_id: self.lower_node_id(id),
lhs_ty: self
.lower_ty(lhs_ty, ImplTraitContext::Disallowed(ImplTraitPosition::Type)),
rhs_ty: self