Skip to content
This repository was archived by the owner on Oct 6, 2024. It is now read-only.
This repository was archived by the owner on Oct 6, 2024. It is now read-only.

$crate is not a valid identifier inside paste::item! #3

Closed
@softprops

Description

@softprops

demo reproduction here https://github.com/dtolnay/paste/pull/2/files

I found that Im not able to refer to a crate local macro inside a paste::item! block, that is the ability to express $crate::foo! which is required to enable rust 2018 style imports ( aka ditching #[macro_use].

The specific context is here where I'm using paste to generate idents which are inputs for another crate local macro

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions