anza-xyz / move

Move compiler targeting llvm supported backends
https://discord.gg/wFgfjG9J
Apache License 2.0
109 stars 34 forks source link

Destroy vectors with elements #368

Closed brson closed 1 year ago

brson commented 1 year ago

This implements the vec_destroy runtime call for vectors with elements, including other vectors and structs.

This patch makes the encode_128 test pass, as described in https://github.com/solana-labs/move/issues/333, but it causes encode_129 to fail (because move-native serializes a deeply nested type that should instead produce a recursion-limit error). I filed https://github.com/solana-labs/move/issues/367 about encode_129.

Fixes https://github.com/solana-labs/move/issues/333

ksolana commented 1 year ago

!help

github-actions[bot] commented 1 year ago
USAGE:
    ![COMMANDS]

COMMANDS:
    add-pr-link