File tree Expand file tree Collapse file tree 3 files changed +1
-17
lines changed Expand file tree Collapse file tree 3 files changed +1
-17
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 120773b2a7b6a1ca8ba859528f3e3cd9e574bf3d
2
+ refs/heads/master: 62e9ae04e26f60124f6760df26b517bce450ae41
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5
5
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
Original file line number Diff line number Diff line change @@ -407,10 +407,6 @@ ctxt<T>::walk_tag0() {
407
407
// Determine the size and alignment.
408
408
tinfo.tag_sa = get_size_align (tinfo.info_ptr );
409
409
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
-
414
410
// Call to the implementation.
415
411
static_cast <T *>(this )->walk_tag1 (tinfo);
416
412
}
@@ -489,10 +485,6 @@ ctxt<T>::walk_res0() {
489
485
reinterpret_cast <const rust_fn **>(tables->resources );
490
486
const rust_fn *dtor = resources[dtor_offset];
491
487
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
-
496
488
uint16_t sp_size = get_u16_bump (sp);
497
489
const uint8_t *end_sp = sp + sp_size;
498
490
Original file line number Diff line number Diff line change @@ -250,10 +250,6 @@ fn shape_of(ccx: @crate_ctxt, t: ty::t) -> ~[u8] {
250
250
}
251
251
add_u16 ( s, id as u16 ) ;
252
252
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
-
257
253
s
258
254
}
259
255
}
@@ -342,10 +338,6 @@ fn shape_of(ccx: @crate_ctxt, t: ty::t) -> ~[u8] {
342
338
let ri = @{ did: dtor_did, parent_id: some ( did) , tps: tps} ;
343
339
let id = interner:: intern ( ccx. shape_cx . resources , ri) ;
344
340
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 ) ;
349
341
} ;
350
342
for ty:: class_items_as_mutable_fields( ccx. tcx, did, substs) . each |f| {
351
343
sub += shape_of ( ccx, f. mt . ty ) ;
You can’t perform that action at this time.
0 commit comments