@@ -224,15 +224,15 @@ debug_opaque(rust_task *task, type_desc *t, uint8_t *front)
224
224
}
225
225
}
226
226
227
- struct rust_box_legacy {
228
- RUST_REFCOUNTED (rust_box_legacy )
227
+ struct rust_box {
228
+ RUST_REFCOUNTED (rust_box )
229
229
230
230
// FIXME `data` could be aligned differently from the actual box body data
231
231
uint8_t data[];
232
232
};
233
233
234
234
extern " C" CDECL void
235
- debug_box (rust_task *task, type_desc *t, rust_box_legacy *box)
235
+ debug_box (rust_task *task, type_desc *t, rust_box *box)
236
236
{
237
237
LOG (task, stdlib, " debug_box(0x%" PRIxPTR " )" , box);
238
238
debug_tydesc_helper (task, t);
@@ -262,7 +262,7 @@ debug_tag(rust_task *task, type_desc *t, rust_tag *tag)
262
262
263
263
struct rust_obj {
264
264
uintptr_t *vtbl;
265
- rust_box_legacy *body;
265
+ rust_box *body;
266
266
};
267
267
268
268
extern " C" CDECL void
@@ -284,7 +284,7 @@ debug_obj(rust_task *task, type_desc *t, rust_obj *obj,
284
284
285
285
struct rust_fn {
286
286
uintptr_t *thunk;
287
- rust_box_legacy *closure;
287
+ rust_box *closure;
288
288
};
289
289
290
290
extern " C" CDECL void
@@ -364,8 +364,7 @@ extern "C" CDECL FILE* rust_get_stdout() {return stdout;}
364
364
extern " C" CDECL FILE* rust_get_stderr () {return stderr;}
365
365
366
366
extern " C" CDECL int
367
- rust_ptr_eq (rust_task *task, type_desc *t, rust_box_legacy *a,
368
- rust_box_legacy *b) {
367
+ rust_ptr_eq (rust_task *task, type_desc *t, rust_box *a, rust_box *b) {
369
368
return a == b;
370
369
}
371
370
0 commit comments