1
Fork 0

Reuse monomorphized functions for different box types

The free glue for opaque boxes will pick the actual tydesc out of the
box, and call its glue.

Issue #1736
This commit is contained in:
Marijn Haverbeke 2012-02-07 11:25:04 +01:00
parent 3bd0338c19
commit b28a5552e3
11 changed files with 228 additions and 260 deletions

View file

@ -191,6 +191,7 @@ debug_opaque(type_desc *t, uint8_t *front) {
}
}
// FIXME this no longer reflects the actual structure of boxes!
struct rust_box {
RUST_REFCOUNTED(rust_box)