hir: remove NodeId from Field

This commit is contained in:
ljedrz 2019-02-26 10:10:54 +01:00
parent 70d3b290e2
commit d959f443fb
3 changed files with 2 additions and 6 deletions

View File

@ -2767,10 +2767,9 @@ impl<'a> LoweringContext<'a> {
}
fn lower_field(&mut self, f: &Field) -> hir::Field {
let LoweredNodeId { node_id, hir_id } = self.next_id();
let LoweredNodeId { node_id: _, hir_id } = self.next_id();
hir::Field {
id: node_id,
hir_id,
ident: f.ident,
expr: P(self.lower_expr(&f.expr)),
@ -4801,10 +4800,9 @@ impl<'a> LoweringContext<'a> {
}
fn field(&mut self, ident: Ident, expr: P<hir::Expr>, span: Span) -> hir::Field {
let LoweredNodeId { node_id, hir_id } = self.next_id();
let LoweredNodeId { node_id: _, hir_id } = self.next_id();
hir::Field {
id: node_id,
hir_id,
ident,
span,

View File

@ -1229,7 +1229,6 @@ pub enum Guard {
#[derive(Clone, RustcEncodable, RustcDecodable, Debug)]
pub struct Field {
pub id: NodeId,
pub hir_id: HirId,
pub ident: Ident,
pub expr: P<Expr>,

View File

@ -523,7 +523,6 @@ impl_stable_hash_for!(enum hir::Guard {
});
impl_stable_hash_for!(struct hir::Field {
id -> _,
hir_id -> _,
ident,
expr,