Skip to content

Commit 50bee30

Browse files
committed
stop making visit glue for closures and traits
1 parent 7b1432f commit 50bee30

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/librustc/middle/trans/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ pub fn malloc_raw_dyn<'a>(
376376

377377
// Get the tydesc for the body:
378378
let static_ti = get_tydesc(ccx, t);
379-
glue::lazily_emit_all_tydesc_glue(ccx, static_ti);
379+
glue::lazily_emit_tydesc_glue(ccx, abi::tydesc_field_drop_glue, static_ti);
380380

381381
// Allocate space:
382382
let tydesc = PointerCast(bcx, static_ti.tydesc, Type::i8p());

src/librustc/middle/trans/glue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ fn simplified_glue_type(tcx: ty::ctxt, field: uint, t: ty::t) -> ty::t {
131131
t
132132
}
133133

134-
fn lazily_emit_tydesc_glue(ccx: @CrateContext, field: uint, ti: @tydesc_info) {
134+
pub fn lazily_emit_tydesc_glue(ccx: @CrateContext, field: uint, ti: @tydesc_info) {
135135
let _icx = push_ctxt("lazily_emit_tydesc_glue");
136136

137137
let simpl = simplified_glue_type(ccx.tcx, field, ti.ty);

src/librustc/middle/trans/meth.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ pub fn get_vtable(bcx: &Block,
481481

482482
// Generate a type descriptor for the vtable.
483483
let tydesc = get_tydesc(ccx, self_ty);
484-
glue::lazily_emit_all_tydesc_glue(ccx, tydesc);
484+
glue::lazily_emit_tydesc_glue(ccx, abi::tydesc_field_drop_glue, tydesc);
485485

486486
let vtable = make_vtable(ccx, tydesc, methods);
487487

0 commit comments

Comments
 (0)