You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The workaround suggested in #4621 (generating multiple impl blocks) is unsatisfactory for public impl functions, as it does not allow for documenting the function, and produces doc output with repeated impl Type headers for each function.
The use case for this is generating code for library bindings.
When generating a public fn with
impl
code, thepub
keyword is ignored, and the resulting function is private (and raises adead_code
warning).It is also not possible to move the pub keyword into the macro, as it then causes an error:
Related issues: #4621, #11403
The workaround suggested in #4621 (generating multiple
impl
blocks) is unsatisfactory for public impl functions, as it does not allow for documenting the function, and produces doc output with repeatedimpl Type
headers for each function.The use case for this is generating code for library bindings.
The following code reproduces the issue:
The text was updated successfully, but these errors were encountered: