hir: remove NodeId from Field
This commit is contained in:
parent
70d3b290e2
commit
d959f443fb
@ -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,
|
||||
|
@ -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>,
|
||||
|
@ -523,7 +523,6 @@ impl_stable_hash_for!(enum hir::Guard {
|
||||
});
|
||||
|
||||
impl_stable_hash_for!(struct hir::Field {
|
||||
id -> _,
|
||||
hir_id -> _,
|
||||
ident,
|
||||
expr,
|
||||
|
Loading…
Reference in New Issue
Block a user