Commit e165c02
authored
fix(wasmtime): Fix borrowchecker errors in Wasmtime list lowering (#188)
Fixes code generation for Wasmtime list lowering.
List lowering happens in a for loop and thus opens a new scope, which
invalidates previous caller_memory bindings.
This previously was not ensured, resulting in borrow checker errors in
the generated code if the items in a list required allocation.
The `lists.wit` tests is modified to contain previously problematic definitions.
Fixes #1871 parent 8929a90 commit e165c02
2 files changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1998 | 1998 | | |
1999 | 1999 | | |
2000 | 2000 | | |
2001 | | - | |
| 2001 | + | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
2002 | 2005 | | |
2003 | 2006 | | |
2004 | 2007 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
0 commit comments