File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed 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