Skip to content

Module level attributes are being parsed before plugins are registered #36617

Closed
@draivin

Description

@draivin

Previously I was using a plugin to register a MultiModifier, and the plugin users would use a #![modifier] attribute in the entry module of their programs, so the plugin could rewrite anything inside the module.

But on the latest nightly, this results in a compilation error:

error: The attribute `modifier` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)

This leads me to believe that module level attributes are now being parsed before the plugins finish registering.

Tagging @jseyfried.

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