Skip to content

Commit 98e5c01

Browse files
committed
---
yaml --- r: 13526 b: refs/heads/master c: 2b70cbc h: refs/heads/master v: v3
1 parent b1e91f4 commit 98e5c01

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
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: f0d8e978a94efe228e2ce9ca89bb4044be040c04
2+
refs/heads/master: 2b70cbc992fbeca0707a2200f730ea32af7e162e
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/rt/rust_shape.h

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -492,13 +492,9 @@ ctxt<T>::walk_res0() {
492492
reinterpret_cast<const rust_fn **>(tables->resources);
493493
const rust_fn *dtor = resources[dtor_offset];
494494

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");
502498

503499
uint16_t sp_size = get_u16_bump(sp);
504500
const uint8_t *end_sp = sp + sp_size;

0 commit comments

Comments
 (0)