diff options
| author | ljedrz <ljedrz@gmail.com> | 2019-02-26 15:33:07 +0100 |
|---|---|---|
| committer | ljedrz <ljedrz@gmail.com> | 2019-03-01 11:18:49 +0100 |
| commit | aa6a9c3f416cc73be8591f05c2b98862b7a500f0 (patch) | |
| tree | 8b503e286cb11d8a0f190c8ed9b1a8e49205b2cb | |
| parent | 2827f8d4fef702b778aef044d044cd51e655e9cd (diff) | |
| download | rust-aa6a9c3f416cc73be8591f05c2b98862b7a500f0.tar.gz rust-aa6a9c3f416cc73be8591f05c2b98862b7a500f0.zip | |
hir: remove NodeId from Arg
| -rw-r--r-- | src/librustc/hir/lowering.rs | 3 | ||||
| -rw-r--r-- | src/librustc/hir/mod.rs | 1 | ||||
| -rw-r--r-- | src/librustc/ich/impls_hir.rs | 1 |
3 files changed, 1 insertions, 4 deletions
diff --git a/src/librustc/hir/lowering.rs b/src/librustc/hir/lowering.rs index 33d95149e9c..b636e6f811d 100644 --- a/src/librustc/hir/lowering.rs +++ b/src/librustc/hir/lowering.rs @@ -2042,9 +2042,8 @@ impl<'a> LoweringContext<'a> { } fn lower_arg(&mut self, arg: &Arg) -> hir::Arg { - let LoweredNodeId { node_id, hir_id } = self.lower_node_id(arg.id); + let LoweredNodeId { node_id: _, hir_id } = self.lower_node_id(arg.id); hir::Arg { - id: node_id, hir_id, pat: self.lower_pat(&arg.pat), } diff --git a/src/librustc/hir/mod.rs b/src/librustc/hir/mod.rs index 3d272c0e251..4eadfdd18e6 100644 --- a/src/librustc/hir/mod.rs +++ b/src/librustc/hir/mod.rs @@ -1852,7 +1852,6 @@ pub struct InlineAsm { #[derive(Clone, RustcEncodable, RustcDecodable, Debug)] pub struct Arg { pub pat: P<Pat>, - pub id: NodeId, pub hir_id: HirId, } diff --git a/src/librustc/ich/impls_hir.rs b/src/librustc/ich/impls_hir.rs index d601d1e1557..112127c8db1 100644 --- a/src/librustc/ich/impls_hir.rs +++ b/src/librustc/ich/impls_hir.rs @@ -955,7 +955,6 @@ impl_stable_hash_for!(enum hir::StmtKind { impl_stable_hash_for!(struct hir::Arg { pat, - id, hir_id }); |
