Skip to content

feat: add custom attributes to fn and extern-block items #3074

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
rich-ayr opened this issue Jan 9, 2025 · 1 comment
Closed

feat: add custom attributes to fn and extern-block items #3074

rich-ayr opened this issue Jan 9, 2025 · 1 comment

Comments

@rich-ayr
Copy link

rich-ayr commented Jan 9, 2025

Currently you are able to add custom attributes to Struct, Enum and Union but not in other places via ParseCallbacks::add_attributes but not to fn items or extern blocks.

This would allow me to use #[export_tokens] on those items and use the tokens in different macros.

See also #2866

@rich-ayr
Copy link
Author

Closing in favor of older issue for tracking.

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