Skip to content

Commit 5943118

Browse files
committed
Drop an unused field from param_substs.
1 parent 0252693 commit 5943118

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/librustc/middle/trans/common.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,8 @@ pub struct ValSelfData {
130130
// will only be set in the case of default methods.
131131
pub struct param_substs {
132132
tys: ~[ty::t],
133-
vtables: Option<typeck::vtable_res>,
134-
type_param_defs: @~[ty::TypeParameterDef],
135133
self_ty: Option<ty::t>,
134+
vtables: Option<typeck::vtable_res>,
136135
self_vtable: Option<typeck::vtable_origin>
137136
}
138137

@@ -144,10 +143,9 @@ impl param_substs {
144143
}
145144

146145
fn param_substs_to_str(this: &param_substs, tcx: ty::ctxt) -> ~str {
147-
fmt!("param_substs {tys:%s, vtables:%s, type_param_defs:%s}",
146+
fmt!("param_substs {tys:%s, vtables:%s}",
148147
this.tys.repr(tcx),
149-
this.vtables.repr(tcx),
150-
this.type_param_defs.repr(tcx))
148+
this.vtables.repr(tcx))
151149
}
152150

153151
impl Repr for param_substs {

src/librustc/middle/trans/monomorphize.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ pub fn monomorphic_fn(ccx: @mut CrateContext,
177177
let psubsts = Some(@param_substs {
178178
tys: substs,
179179
vtables: vtables,
180-
type_param_defs: tpt.generics.type_param_defs,
181180
self_ty: real_substs.self_ty,
182181
self_vtable: self_vtable
183182
});

0 commit comments

Comments
 (0)