From 59431187284b377bdffdf16eda01c9239359592e Mon Sep 17 00:00:00 2001 From: Michael Sullivan Date: Thu, 27 Jun 2013 17:43:34 -0700 Subject: [PATCH] Drop an unused field from param_substs. --- src/librustc/middle/trans/common.rs | 8 +++----- src/librustc/middle/trans/monomorphize.rs | 1 - 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/librustc/middle/trans/common.rs b/src/librustc/middle/trans/common.rs index 653687ea39f9..94a618b2d85e 100644 --- a/src/librustc/middle/trans/common.rs +++ b/src/librustc/middle/trans/common.rs @@ -130,9 +130,8 @@ pub struct ValSelfData { // will only be set in the case of default methods. pub struct param_substs { tys: ~[ty::t], - vtables: Option, - type_param_defs: @~[ty::TypeParameterDef], self_ty: Option, + vtables: Option, self_vtable: Option } @@ -144,10 +143,9 @@ impl param_substs { } fn param_substs_to_str(this: ¶m_substs, tcx: ty::ctxt) -> ~str { - fmt!("param_substs {tys:%s, vtables:%s, type_param_defs:%s}", + fmt!("param_substs {tys:%s, vtables:%s}", this.tys.repr(tcx), - this.vtables.repr(tcx), - this.type_param_defs.repr(tcx)) + this.vtables.repr(tcx)) } impl Repr for param_substs { diff --git a/src/librustc/middle/trans/monomorphize.rs b/src/librustc/middle/trans/monomorphize.rs index 3011f0c5d844..cc6ca55ccc74 100644 --- a/src/librustc/middle/trans/monomorphize.rs +++ b/src/librustc/middle/trans/monomorphize.rs @@ -177,7 +177,6 @@ pub fn monomorphic_fn(ccx: @mut CrateContext, let psubsts = Some(@param_substs { tys: substs, vtables: vtables, - type_param_defs: tpt.generics.type_param_defs, self_ty: real_substs.self_ty, self_vtable: self_vtable });