From 0a7d5cd54871d5700ef07aa59952652c81785981 Mon Sep 17 00:00:00 2001 From: Russell Greene Date: Thu, 23 Jun 2022 04:03:15 +0000 Subject: [PATCH] fix accidental removal --- macro/src/expand.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/macro/src/expand.rs b/macro/src/expand.rs index 50fdb0cea..5859304c0 100644 --- a/macro/src/expand.rs +++ b/macro/src/expand.rs @@ -1509,6 +1509,7 @@ fn expand_shared_ptr( } __null(new); } + #new_method unsafe fn __from_unmanaged(value: *mut Self, new: *mut ::cxx::core::ffi::c_void) { extern "C" { #[link_name = #link_from_unmanaged]