Skip to content

Custom attributes from unstable plugins and procedural macro attributes are not compatible #40001

Closed
@nox

Description

@nox

In servo/servo@master...nox:custom-derive I changed the attribute #[dom_struct] from our plugins crate (a plugin = true crate) into a proc_macro_attribute function. Unfortunately, the plugins crate also defines a whitelisted attribute #[must_root] and using both at the same time fails with the following compile error:

error: macro undefined: `must_root`
   --> /Users/nox/src/servo/components/script/serviceworkerjob.rs:115:1
    |
115 | #[must_root]
    | ^^^^^^^^^^^^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions