Skip to content

Support builtin derive attributes helper attributes #13244

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
Veykril opened this issue Sep 16, 2022 · 0 comments · Fixed by #13730
Closed

Support builtin derive attributes helper attributes #13244

Veykril opened this issue Sep 16, 2022 · 0 comments · Fixed by #13730
Labels
A-macro macro expansion

Comments

@Veykril
Copy link
Member

Veykril commented Sep 16, 2022

The Default derive now has a helper attribute defined called default. We don't support those yet.
See https://doc.rust-lang.org/src/core/default.rs.html#182

#[rustc_builtin_macro(Default, attributes(default))]
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
#[allow_internal_unstable(core_intrinsics)]
pub macro Default($item:item) {
    /* compiler built-in */
}

we need to parse the #[rustc_builtin_macro(Default, attributes(default))] line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-macro macro expansion
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant