Skip to content

Commit b6b2edb

Browse files
committed
hir: remove NodeId from WhereEqPredicate
1 parent cd5b5e7 commit b6b2edb

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

src/librustc/hir/lowering.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2661,10 +2661,9 @@ impl<'a> LoweringContext<'a> {
26612661
ref rhs_ty,
26622662
span,
26632663
}) => {
2664-
let LoweredNodeId { node_id, hir_id } = self.lower_node_id(id);
2664+
let LoweredNodeId { node_id: _, hir_id } = self.lower_node_id(id);
26652665

26662666
hir::WherePredicate::EqPredicate(hir::WhereEqPredicate {
2667-
id: node_id,
26682667
hir_id,
26692668
lhs_ty: self.lower_ty(lhs_ty, ImplTraitContext::disallowed()),
26702669
rhs_ty: self.lower_ty(rhs_ty, ImplTraitContext::disallowed()),

src/librustc/hir/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,6 @@ pub struct WhereRegionPredicate {
687687
/// An equality predicate (e.g., `T = int`); currently unsupported.
688688
#[derive(Clone, RustcEncodable, RustcDecodable, Debug)]
689689
pub struct WhereEqPredicate {
690-
pub id: NodeId,
691690
pub hir_id: HirId,
692691
pub span: Span,
693692
pub lhs_ty: P<Ty>,

src/librustc/ich/impls_hir.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,6 @@ impl_stable_hash_for!(struct hir::WhereRegionPredicate {
277277
});
278278

279279
impl_stable_hash_for!(struct hir::WhereEqPredicate {
280-
id,
281280
hir_id,
282281
span,
283282
lhs_ty,

0 commit comments

Comments
 (0)