-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Hi, I tried building against the Xcode 11.3 SDK. The build errors out with numerous errors of this kind:
error[E0201]: duplicate definitions with name `new`:
--> src/RustKit/target/debug/build/rustkit-74ad679636d80c03/out/Foundation.rs:75054:5
|
75042 | / pub fn new() -> Arc<Self> {
75043 | | unsafe {
75044 | | let send: unsafe extern "C" fn(*mut Object, SelectorRef) -> *mut Self =
75045 | | mem::transmute(objc_msgSend as *const u8);
... |
75052 | | }
75053 | | }
| |_____- previous definition of `new` here
75054 | / pub fn new() -> Arc<Self> {
75055 | | unsafe {
75056 | | let send: unsafe extern "C" fn(*mut Object, SelectorRef) -> *mut Self =
75057 | | mem::transmute(objc_msgSend as *const u8);
... |
75064 | | }
75065 | | }
| |_____^ duplicate definition
I think it is trying to generate the same method for the init and new Objective-C methods, both of which are marked deprecated, by the way.
Appreciate any assistance. Thanks!
Metadata
Metadata
Assignees
Labels
No labels