Skip to content

Macros in extern blocks don't work #8909

@jonas-schievink

Description

@jonas-schievink
macro_rules! m {
    () => { static EXT: u8; }
}

extern {
    m!();
}

fn main() {
    EXT;
}

The usage of EXT in main does not get resolved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-macromacro expansionA-nameresname, path and module resolutionS-actionableSomeone could pick this issue up and work on it right now

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions