Skip to content

Module path attribute override with nested macros doesnt work #87681

Open
@Veetaha

Description

@Veetaha

I tried this code:

Repository with the reproduction

I expected to see this happen:

The code should compile without errors, because this feature was advertised in Rust 1.54 announcement and in #83366.

Instead, this happened:

Compile error file not found for module generated was issued

More info in README.md of the reproduction repo

Meta

rustc --version --verbose:

rustc 1.54.0 (a178d0322 2021-07-26)
binary: rustc
commit-hash: a178d0322ce20e33eac124758e837cbd80a6f633
commit-date: 2021-07-26
host: x86_64-unknown-linux-gnu
release: 1.54.0
LLVM version: 12.0.1

cc @jyn514

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-attributesArea: Attributes (`#[…]`, `#![…]`)C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions