Skip to content

Can't shadow built-in attributes #12649

@flodiebold

Description

@flodiebold

In the following code:

use tokio::main;

#[main]
async fn foo() {
}

we resolve main as the built-in attribute instead of tokio::main.

I tried to look into this, but actually failed to understand how we resolve built-in attributes during item collection at all 🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-macromacro expansionA-nameresname, path and module resolutionC-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions