Skip to content

Enabling "nightly" feature breaks processing of mod in another file #56

@CodeSandwich

Description

@CodeSandwich

Situation

my_mod is a module with body in file my_mod.rs. To include it in the project it must be declared in another file, let's say lib.rs. I'm trying to push whole my_mod into proc macro my_macro, so I write in lib.rs:

#[my_macro]
mod my_mod;

Without "nightly" feature

Whole content of my_mod is passed into macro.

With "nightly" feature

Only mod my_mod; is passed into macro.

Question

Is it regression or is it the way proc macros 2.0 are supposed to work?

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