-
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, ..)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Description
From piston2d-gfx_graphics
:
error[E0432]: unresolved import `$crate`
--> src/back_end.rs:30:1
|
30 | gfx_pipeline_base!( pipe_colored {
| ^ no `$crate` in the root
|
= note: this error originates in a macro outside of the current crate
macro definition:
#[macro_export]
macro_rules! gfx_pipeline_base {
($module:ident {
$( $field:ident: $ty:ty, )*
}) => {
pub mod $module {
use $crate;
#[allow(unused_imports)]
use super::*;
gfx_pipeline_inner!{ $(
$field: $ty,
)*}
}
}
}
cc @jseyfried, #37213
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, ..)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.