From 74fc953c49dce93f1ec180c38430d470c0656fb9 Mon Sep 17 00:00:00 2001 From: rbran Date: Thu, 12 Mar 2026 16:22:11 +0000 Subject: [PATCH] [Rust] impl Send and Sync to CoreLanguageRepresentationFunctionType --- rust/src/language_representation.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rust/src/language_representation.rs b/rust/src/language_representation.rs index d39cb95f10..470d67b069 100644 --- a/rust/src/language_representation.rs +++ b/rust/src/language_representation.rs @@ -123,6 +123,9 @@ pub struct CoreLanguageRepresentationFunctionType { handle: NonNull, } +unsafe impl Send for CoreLanguageRepresentationFunctionType {} +unsafe impl Sync for CoreLanguageRepresentationFunctionType {} + impl CoreLanguageRepresentationFunctionType { pub(crate) unsafe fn from_raw(handle: NonNull) -> Self { Self { handle }