Skip to content

Commit 243b30c

Browse files
committed
---
yaml --- r: 22442 b: refs/heads/master c: 62e9ae0 h: refs/heads/master v: v3
1 parent 970b2b3 commit 243b30c

File tree

3 files changed

+1
-17
lines changed

3 files changed

+1
-17
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 120773b2a7b6a1ca8ba859528f3e3cd9e574bf3d
2+
refs/heads/master: 62e9ae04e26f60124f6760df26b517bce450ae41
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/src/rt/rust_shape.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -407,10 +407,6 @@ ctxt<T>::walk_tag0() {
407407
// Determine the size and alignment.
408408
tinfo.tag_sa = get_size_align(tinfo.info_ptr);
409409

410-
// Read in a dummy value; this used to be the number of parameters
411-
uint16_t number_of_params = get_u16_bump(sp);
412-
assert(number_of_params == 0 && "tag has type parameters on it");
413-
414410
// Call to the implementation.
415411
static_cast<T *>(this)->walk_tag1(tinfo);
416412
}
@@ -489,10 +485,6 @@ ctxt<T>::walk_res0() {
489485
reinterpret_cast<const rust_fn **>(tables->resources);
490486
const rust_fn *dtor = resources[dtor_offset];
491487

492-
// Read in a dummy value; this used to be the number of parameters
493-
uint16_t number_of_params = get_u16_bump(sp);
494-
assert(number_of_params == 0 && "resource has type parameters on it");
495-
496488
uint16_t sp_size = get_u16_bump(sp);
497489
const uint8_t *end_sp = sp + sp_size;
498490

trunk/src/rustc/middle/trans/shape.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,6 @@ fn shape_of(ccx: @crate_ctxt, t: ty::t) -> ~[u8] {
250250
}
251251
add_u16(s, id as u16);
252252

253-
// Hack: always encode 0 tps, since the shape glue format
254-
// hasn't changed since we started monomorphizing.
255-
add_u16(s, 0_u16);
256-
257253
s
258254
}
259255
}
@@ -342,10 +338,6 @@ fn shape_of(ccx: @crate_ctxt, t: ty::t) -> ~[u8] {
342338
let ri = @{did: dtor_did, parent_id: some(did), tps: tps};
343339
let id = interner::intern(ccx.shape_cx.resources, ri);
344340
add_u16(s, id as u16);
345-
346-
// Hack: always encode 0 tps, since the shape glue format
347-
// hasn't changed since we started monomorphizing.
348-
add_u16(s, 0_u16);
349341
};
350342
for ty::class_items_as_mutable_fields(ccx.tcx, did, substs).each |f| {
351343
sub += shape_of(ccx, f.mt.ty);

0 commit comments

Comments
 (0)