Skip to content

fix(ffi): restore build of regorus_program_get_builtin_names - #864

Merged
Anand Krishnamoorthi (anakrish) merged 1 commit into
microsoft:mainfrom
snehabandla:fix/ffi-builtin-names-string-result
Oct 26, 2026
Merged

Anand Krishnamoorthi (anakrish) merged 1 commit into
microsoft:mainfrom
snehabandla:fix/ffi-builtin-names-string-result

Conversation

@snehabandla

Copy link
Copy Markdown
Contributor

#853 added a call to to_rvm_string_result, while #830 removed that helper as unused. The two merged concurrently, leaving main's FFI crate unbuildable (cannot find function to_rvm_string_result), which also breaks cargo xtask clippy and the pre-commit hook.

Use the shared common::to_regorus_string_result instead. The closure can only fail with null/invalid-handle or serde errors, never VmError, so the returned status (RegorusStatus::Error) is unchanged from the removed helper's behavior for this path.

microsoft#853 added a call to `to_rvm_string_result`, while microsoft#830 removed that
helper as unused. The two merged concurrently, leaving main's FFI crate
unbuildable (`cannot find function to_rvm_string_result`), which also
breaks `cargo xtask clippy` and the pre-commit hook.

Use the shared `common::to_regorus_string_result` instead. The closure
can only fail with null/invalid-handle or serde errors, never `VmError`,
so the returned status (`RegorusStatus::Error`) is unchanged from the
removed helper's behavior for this path.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@anakrish
Anand Krishnamoorthi (anakrish) merged commit b5247ea into microsoft:main Oct 26, 2026
60 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants