Drop an unused field from param_substs.

This commit is contained in:
Michael Sullivan 2013-06-27 17:43:34 -07:00
parent 0252693db2
commit 5943118728
2 changed files with 3 additions and 6 deletions

View File

@ -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: &param_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 {

View File

@ -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
});