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

warning: $crate may not be imported #313

Closed
andybarron opened this issue Nov 3, 2016 · 3 comments
Closed

warning: $crate may not be imported #313

andybarron opened this issue Nov 3, 2016 · 3 comments
Assignees

Comments

@andybarron
Copy link

When compiling (as a dependency) via nightly:

warning: `$crate` may not be imported
  --> C:\Users\Andy\.cargo\registry\src\github.com-1ecc6299db9ec823\piston2d-gfx_graphics-0.33.0\src\back_end.rs:39:1
   |
39 | gfx_pipeline_base!( pipe_textured {
   | ^
   |
   = note: `use $crate;` was erroneously allowed and will become a hard error in a future release
   = note: this error originates in a macro outside of the current crate
@Jascha-N
Copy link

It no longer compiles under nightly at all.

@mitchmindtree
Copy link
Contributor

I think the problem is due to a rustc bug fix that broke gfx. See here gfx-rs/gfx#1070.

@andybarron
Copy link
Author

andybarron commented Nov 16, 2016

Still having this issue on latest nightly (1.15 / 2016-11-15). The rustc bug mentioned above has been fixed.

   Compiling piston2d-gfx_graphics v0.33.1
warning: `$crate` may not be imported
  --> C:\Users\Andy\.cargo\registry\src\github.com-1ecc6299db9ec823\piston2d-gfx_graphics-0.33.1\src\back_end.rs:30:1
   |
30 | gfx_pipeline_base!( pipe_colored {
   | ^
   |
   = note: `use $crate;` was erroneously allowed and will become a hard error in a future release
   = note: this error originates in a macro outside of the current crate

warning: `$crate` may not be imported
  --> C:\Users\Andy\.cargo\registry\src\github.com-1ecc6299db9ec823\piston2d-gfx_graphics-0.33.1\src\back_end.rs:39:1
   |
39 | gfx_pipeline_base!( pipe_textured {
   | ^
   |
   = note: `use $crate;` was erroneously allowed and will become a hard error in a future release
   = note: this error originates in a macro outside of the current crate

error[E0432]: unresolved import ``
  --> C:\Users\Andy\.cargo\registry\src\github.com-1ecc6299db9ec823\piston2d-gfx_graphics-0.33.1\src\back_end.rs:30:1
   |
30 | gfx_pipeline_base!( pipe_colored {
   | ^ no `` in the root
   |
   = note: this error originates in a macro outside of the current crate

error[E0432]: unresolved import ``
  --> C:\Users\Andy\.cargo\registry\src\github.com-1ecc6299db9ec823\piston2d-gfx_graphics-0.33.1\src\back_end.rs:39:1
   |
39 | gfx_pipeline_base!( pipe_textured {
   | ^ no `` in the root
   |
   = note: this error originates in a macro outside of the current crate

error: aborting due to 2 previous errors

Build failed, waiting for other jobs to finish...
error: Could not compile `piston2d-gfx_graphics`.

To learn more, run the command again with --verbose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants