Commit 90545d4
authored
Refactor how
This commit refactors the `wit-component` conventions used to import
`error-context.*` intrinsics. The first change is to drop the `realloc`
option on the `error-context.debug-message` intrinsic in favor of
inferring that from the "general purpose import realloc" option. This
avoids the need to name a symbol and enables generally relying on there
being a single option for this.
The second change is to change how `encoding=` is specified and bake it
directly into the name instead of having a url-scheme-like encoding with
multiple options. This is in theory the only option necessary for these
intrinsics so it's possible to have a static set of a few names that
might be chosen.error-context.* intrinsics are imported (bytecodealliance#2067)1 parent 53d1e22 commit 90545d4
File tree
4 files changed
+137
-113
lines changed- crates/wit-component
- src
- tests/components/async-builtins
4 files changed
+137
-113
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1324 | 1324 | | |
1325 | 1325 | | |
1326 | 1326 | | |
1327 | | - | |
1328 | 1327 | | |
1329 | | - | |
| 1328 | + | |
1330 | 1329 | | |
1331 | 1330 | | |
1332 | | - | |
1333 | | - | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
1334 | 1334 | | |
1335 | 1335 | | |
1336 | 1336 | | |
| |||
1740 | 1740 | | |
1741 | 1741 | | |
1742 | 1742 | | |
1743 | | - | |
1744 | | - | |
1745 | | - | |
1746 | | - | |
1747 | | - | |
1748 | | - | |
1749 | | - | |
1750 | | - | |
1751 | | - | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
1752 | 1750 | | |
1753 | 1751 | | |
1754 | 1752 | | |
| |||
2092 | 2090 | | |
2093 | 2091 | | |
2094 | 2092 | | |
2095 | | - | |
2096 | | - | |
2097 | | - | |
2098 | 2093 | | |
2099 | 2094 | | |
2100 | 2095 | | |
| |||
2293 | 2288 | | |
2294 | 2289 | | |
2295 | 2290 | | |
2296 | | - | |
| 2291 | + | |
2297 | 2292 | | |
2298 | 2293 | | |
2299 | 2294 | | |
| |||
2304 | 2299 | | |
2305 | 2300 | | |
2306 | 2301 | | |
2307 | | - | |
2308 | 2302 | | |
2309 | 2303 | | |
2310 | 2304 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
| 386 | + | |
390 | 387 | | |
391 | 388 | | |
392 | 389 | | |
| |||
633 | 630 | | |
634 | 631 | | |
635 | 632 | | |
636 | | - | |
| 633 | + | |
637 | 634 | | |
638 | 635 | | |
639 | 636 | | |
640 | | - | |
641 | | - | |
642 | | - | |
643 | | - | |
| 637 | + | |
644 | 638 | | |
645 | 639 | | |
646 | 640 | | |
| |||
1271 | 1265 | | |
1272 | 1266 | | |
1273 | 1267 | | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
1274 | 1275 | | |
1275 | 1276 | | |
1276 | 1277 | | |
| |||
1420 | 1421 | | |
1421 | 1422 | | |
1422 | 1423 | | |
1423 | | - | |
| 1424 | + | |
1424 | 1425 | | |
1425 | 1426 | | |
1426 | 1427 | | |
| |||
1519 | 1520 | | |
1520 | 1521 | | |
1521 | 1522 | | |
1522 | | - | |
1523 | | - | |
| 1523 | + | |
1524 | 1524 | | |
1525 | 1525 | | |
1526 | | - | |
1527 | | - | |
| 1526 | + | |
1528 | 1527 | | |
1529 | 1528 | | |
1530 | 1529 | | |
| |||
1701 | 1700 | | |
1702 | 1701 | | |
1703 | 1702 | | |
1704 | | - | |
1705 | | - | |
1706 | | - | |
1707 | | - | |
1708 | | - | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
1709 | 1710 | | |
1710 | | - | |
1711 | | - | |
1712 | | - | |
1713 | | - | |
1714 | | - | |
1715 | | - | |
1716 | | - | |
1717 | | - | |
1718 | | - | |
1719 | | - | |
1720 | | - | |
1721 | | - | |
1722 | | - | |
1723 | | - | |
1724 | | - | |
1725 | | - | |
1726 | | - | |
1727 | | - | |
1728 | | - | |
1729 | | - | |
1730 | | - | |
1731 | | - | |
1732 | | - | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
1733 | 1717 | | |
1734 | | - | |
1735 | 1718 | | |
1736 | 1719 | | |
1737 | 1720 | | |
| |||
2043 | 2026 | | |
2044 | 2027 | | |
2045 | 2028 | | |
2046 | | - | |
2047 | | - | |
2048 | | - | |
2049 | | - | |
2050 | | - | |
2051 | | - | |
2052 | | - | |
2053 | | - | |
2054 | | - | |
0 commit comments