File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: f0d8e978a94efe228e2ce9ca89bb4044be040c04
2
+ refs/heads/master: 2b70cbc992fbeca0707a2200f730ea32af7e162e
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
Original file line number Diff line number Diff line change @@ -492,13 +492,9 @@ ctxt<T>::walk_res0() {
492
492
reinterpret_cast <const rust_fn **>(tables->resources );
493
493
const rust_fn *dtor = resources[dtor_offset];
494
494
495
- // Read in the resource type parameters, but ignore them.
496
- // TODO: remove after snapshot
497
- uint16_t n_ty_params = get_u16_bump (sp);
498
- for (uint16_t i = 0 ; i < n_ty_params; i++) {
499
- uint16_t ty_param_len = get_u16_bump (sp);
500
- sp += ty_param_len;
501
- }
495
+ // Read in a dummy value; this used to be the number of parameters
496
+ uint16_t number_of_params = get_u16_bump (sp);
497
+ assert (number_of_params == 0 && " resource has type parameters on it" );
502
498
503
499
uint16_t sp_size = get_u16_bump (sp);
504
500
const uint8_t *end_sp = sp + sp_size;
You can’t perform that action at this time.
0 commit comments