-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)A-resolveArea: Name/path resolution done by `rustc_resolve` specificallyArea: Name/path resolution done by `rustc_resolve` specificallyT-langRelevant to the language teamRelevant to the language team
Description
Setup:
You have a workspace, with one subcrate. The subcrate contains a macro (which is exported).
The main crate in the workspace uses the subcrate as a dependency, but it cannot resolve the macro by importing it with use
(the 2018 edition way)
Here is a PoC: https://github.com/Dylan-DPC/macros-workspace-test
Rust version: 1.33.0 (stable)
Edition: 2018
Metadata
Metadata
Assignees
Labels
A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)A-resolveArea: Name/path resolution done by `rustc_resolve` specificallyArea: Name/path resolution done by `rustc_resolve` specificallyT-langRelevant to the language teamRelevant to the language team