diff options
| author | Michael Sullivan <sully@msully.net> | 2013-06-27 17:43:34 -0700 |
|---|---|---|
| committer | Michael Sullivan <sully@msully.net> | 2013-06-28 18:09:02 -0700 |
| commit | 59431187284b377bdffdf16eda01c9239359592e (patch) | |
| tree | e8a5e1a461be2326e74a4b886dc08359021864fa | |
| parent | 0252693db21f48a516f9a36cdeb8b2dd7e33bd02 (diff) | |
| download | rust-59431187284b377bdffdf16eda01c9239359592e.tar.gz rust-59431187284b377bdffdf16eda01c9239359592e.zip | |
Drop an unused field from param_substs.
| -rw-r--r-- | src/librustc/middle/trans/common.rs | 8 | ||||
| -rw-r--r-- | 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 653687ea39f..94a618b2d85 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<typeck::vtable_res>, - type_param_defs: @~[ty::TypeParameterDef], self_ty: Option<ty::t>, + vtables: Option<typeck::vtable_res>, self_vtable: Option<typeck::vtable_origin> } @@ -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 3011f0c5d84..cc6ca55ccc7 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 }); |
