Skip to content

Commit d959f44

Browse files
committed
hir: remove NodeId from Field
1 parent 70d3b29 commit d959f44

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

src/librustc/hir/lowering.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2767,10 +2767,9 @@ impl<'a> LoweringContext<'a> {
27672767
}
27682768

27692769
fn lower_field(&mut self, f: &Field) -> hir::Field {
2770-
let LoweredNodeId { node_id, hir_id } = self.next_id();
2770+
let LoweredNodeId { node_id: _, hir_id } = self.next_id();
27712771

27722772
hir::Field {
2773-
id: node_id,
27742773
hir_id,
27752774
ident: f.ident,
27762775
expr: P(self.lower_expr(&f.expr)),
@@ -4801,10 +4800,9 @@ impl<'a> LoweringContext<'a> {
48014800
}
48024801

48034802
fn field(&mut self, ident: Ident, expr: P<hir::Expr>, span: Span) -> hir::Field {
4804-
let LoweredNodeId { node_id, hir_id } = self.next_id();
4803+
let LoweredNodeId { node_id: _, hir_id } = self.next_id();
48054804

48064805
hir::Field {
4807-
id: node_id,
48084806
hir_id,
48094807
ident,
48104808
span,

src/librustc/hir/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,6 @@ pub enum Guard {
12291229

12301230
#[derive(Clone, RustcEncodable, RustcDecodable, Debug)]
12311231
pub struct Field {
1232-
pub id: NodeId,
12331232
pub hir_id: HirId,
12341233
pub ident: Ident,
12351234
pub expr: P<Expr>,

src/librustc/ich/impls_hir.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,6 @@ impl_stable_hash_for!(enum hir::Guard {
523523
});
524524

525525
impl_stable_hash_for!(struct hir::Field {
526-
id -> _,
527526
hir_id -> _,
528527
ident,
529528
expr,

0 commit comments

Comments
 (0)