Skip to content

Commit aa6a9c3

Browse files
committed
hir: remove NodeId from Arg
1 parent 2827f8d commit aa6a9c3

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

src/librustc/hir/lowering.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -2042,9 +2042,8 @@ impl<'a> LoweringContext<'a> {
20422042
}
20432043

20442044
fn lower_arg(&mut self, arg: &Arg) -> hir::Arg {
2045-
let LoweredNodeId { node_id, hir_id } = self.lower_node_id(arg.id);
2045+
let LoweredNodeId { node_id: _, hir_id } = self.lower_node_id(arg.id);
20462046
hir::Arg {
2047-
id: node_id,
20482047
hir_id,
20492048
pat: self.lower_pat(&arg.pat),
20502049
}

src/librustc/hir/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1852,7 +1852,6 @@ pub struct InlineAsm {
18521852
#[derive(Clone, RustcEncodable, RustcDecodable, Debug)]
18531853
pub struct Arg {
18541854
pub pat: P<Pat>,
1855-
pub id: NodeId,
18561855
pub hir_id: HirId,
18571856
}
18581857

src/librustc/ich/impls_hir.rs

-1
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,6 @@ impl_stable_hash_for!(enum hir::StmtKind {
955955

956956
impl_stable_hash_for!(struct hir::Arg {
957957
pat,
958-
id,
959958
hir_id
960959
});
961960

0 commit comments

Comments
 (0)