Skip to content

Support builtin derive attributes helper attributes #13244

@Veykril

Description

@Veykril
Member

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

Activity

added a commit that references this issue on Dec 6, 2022
df07c8f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-macromacro expansion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @Veykril

      Issue actions

        Support builtin derive attributes helper attributes · Issue #13244 · rust-lang/rust-analyzer