Skip to content

Can't implement the same method for multiple classes #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
SSheldon opened this issue Aug 21, 2014 · 1 comment
Closed

Can't implement the same method for multiple classes #4

SSheldon opened this issue Aug 21, 2014 · 1 comment

Comments

@SSheldon
Copy link
Owner

Currently, the extern function implementing a method in the method! macro uses the first part of the selector as its name. Unfortunately, if two extern functions anywhere have the same name, rustc crashes. This is described in rust-lang/rust#16403, which was closed as a duplicate of rust-lang/rust#10883, and the discussion there seems to indicate it's an expected error and won't be fixed.

@SSheldon
Copy link
Owner Author

The method! macro was removed in 6605b4f. This ICE will still happen, but now that the macro isn't defining the name of the function, it's not my fault and there's nothing I can do to fix it.

madsmtm added a commit to madsmtm/rust-objc that referenced this issue Oct 1, 2021
Make `objc_foundation` use new encoding types
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

No branches or pull requests

1 participant