Skip to content

Commit 2827f8d

Browse files
committed
hir: remove NodeId from TypeBinding
1 parent a29ceb9 commit 2827f8d

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

src/librustc/hir/lowering.rs

+3-6
Original file line numberDiff line numberDiff line change
@@ -1151,10 +1151,9 @@ impl<'a> LoweringContext<'a> {
11511151

11521152
fn lower_ty_binding(&mut self, b: &TypeBinding,
11531153
itctx: ImplTraitContext<'_>) -> hir::TypeBinding {
1154-
let LoweredNodeId { node_id, hir_id } = self.lower_node_id(b.id);
1154+
let LoweredNodeId { node_id: _, hir_id } = self.lower_node_id(b.id);
11551155

11561156
hir::TypeBinding {
1157-
id: node_id,
11581157
hir_id,
11591158
ident: b.ident,
11601159
ty: self.lower_ty(&b.ty, itctx),
@@ -1982,14 +1981,13 @@ impl<'a> LoweringContext<'a> {
19821981
let LoweredNodeId { node_id: _, hir_id } = this.next_id();
19831982
hir::Ty { node: hir::TyKind::Tup(tys), hir_id, span }
19841983
};
1985-
let LoweredNodeId { node_id, hir_id } = this.next_id();
1984+
let LoweredNodeId { node_id: _, hir_id } = this.next_id();
19861985

19871986
(
19881987
hir::GenericArgs {
19891988
args: hir_vec![GenericArg::Type(mk_tup(this, inputs, span))],
19901989
bindings: hir_vec![
19911990
hir::TypeBinding {
1992-
id: node_id,
19931991
hir_id,
19941992
ident: Ident::from_str(FN_OUTPUT_NAME),
19951993
ty: output
@@ -2326,13 +2324,12 @@ impl<'a> LoweringContext<'a> {
23262324
};
23272325

23282326
// "<Output = T>"
2329-
let LoweredNodeId { node_id, hir_id } = this.next_id();
2327+
let LoweredNodeId { node_id: _, hir_id } = this.next_id();
23302328
let future_params = P(hir::GenericArgs {
23312329
args: hir_vec![],
23322330
bindings: hir_vec![hir::TypeBinding {
23332331
ident: Ident::from_str(FN_OUTPUT_NAME),
23342332
ty: output_ty,
2335-
id: node_id,
23362333
hir_id,
23372334
span,
23382335
}],

src/librustc/hir/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1737,7 +1737,6 @@ pub enum ImplItemKind {
17371737
// Bind a type to an associated type: `A=Foo`.
17381738
#[derive(Clone, RustcEncodable, RustcDecodable, Debug)]
17391739
pub struct TypeBinding {
1740-
pub id: NodeId,
17411740
pub hir_id: HirId,
17421741
pub ident: Ident,
17431742
pub ty: P<Ty>,

src/librustc/ich/impls_hir.rs

-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,6 @@ impl_stable_hash_for!(struct hir::MethodSig {
294294
});
295295

296296
impl_stable_hash_for!(struct hir::TypeBinding {
297-
id,
298297
hir_id,
299298
ident -> (ident.name),
300299
ty,

0 commit comments

Comments
 (0)