Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use $crate; : unresolved import $crate #37352

Closed
TimNN opened this issue Oct 22, 2016 · 1 comment · Fixed by #37361
Closed

use $crate; : unresolved import $crate #37352

TimNN opened this issue Oct 22, 2016 · 1 comment · Fixed by #37361
Labels
A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@TimNN
Copy link
Contributor

TimNN commented Oct 22, 2016

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

@TimNN TimNN added A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Oct 22, 2016
@jseyfried
Copy link
Contributor

Fixed in #37361.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants