( raw_env_obj: LeanIxonRawEnv<LeanOwned>, )
| 1522 | }, |
| 1523 | 5 => { |
| 1524 | CompileError::Serialize(LeanIxSerializeError(self.get_obj(0)).decode()) |
| 1525 | }, |
| 1526 | tag => unreachable!("Invalid CompileError tag: {tag}"), |
| 1527 | } |
| 1528 | } |
| 1529 | } |
| 1530 | |
| 1531 | /// FFI: Round-trip a DecompileError: Lean → Rust → Lean. |
| 1532 | #[cfg(feature = "test-ffi")] |
| 1533 | #[unsafe(no_mangle)] |
| 1534 | pub extern "C" fn rs_roundtrip_decompile_error( |
| 1535 | obj: LeanIxDecompileError<LeanBorrowed<'_>>, |
| 1536 | ) -> LeanIxDecompileError<LeanOwned> { |
| 1537 | let err = obj.decode(); |
| 1538 | LeanIxDecompileError::build(&err) |
| 1539 | } |
| 1540 | |
| 1541 | /// FFI: Round-trip a CompileError: Lean → Rust → Lean. |
| 1542 | #[cfg(feature = "test-ffi")] |
| 1543 | #[unsafe(no_mangle)] |
| 1544 | pub extern "C" fn rs_roundtrip_compile_error( |
| 1545 | obj: LeanIxCompileError<LeanBorrowed<'_>>, |
| 1546 | ) -> LeanIxCompileError<LeanOwned> { |
| 1547 | let err = obj.decode(); |
| 1548 | LeanIxCompileError::build(&err) |
| 1549 | } |
| 1550 | |
| 1551 | /// FFI: Round-trip a SerializeError: Lean → Rust → Lean. |
| 1552 | #[cfg(feature = "test-ffi")] |
| 1553 | #[unsafe(no_mangle)] |
nothing calls this directly
no test coverage detected