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 super::* compile error in macro #900

Closed
bvssvni opened this issue Mar 7, 2016 · 3 comments
Closed

use super::* compile error in macro #900

bvssvni opened this issue Mar 7, 2016 · 3 comments

Comments

@bvssvni
Copy link
Contributor

bvssvni commented Mar 7, 2016

Seems to cause compile error when gfx is imported in parent module. use $crate imports gfx, then it is imported once more with use super::*. Just my guess.

use super::*;

Getting this error in PistonDevelopers/piston-examples#333:

   Compiling piston-examples v0.0.0 (file:///Users/sven/rust/piston-examples)
<gfx macros>:4:19: 4:30 error: import `gfx` conflicts with imported crate in this module (maybe you meant `use gfx::*`?) [E0254]
<gfx macros>:4 use $ crate ; use super:: * ; gfx_pipeline_inner ! { $ ( $ field : $ ty , ) *
                                 ^~~~~~~~~~~
@kvark
Copy link
Member

kvark commented Mar 7, 2016

I see a different error in this PR:
https://travis-ci.org/PistonDevelopers/piston-examples/jobs/114290470#L733
Are you sure it's actual?

We used to get that "conflicts with imported crate in this module" for a while, mixed with rust-lang/rust#31504. When the ICE got fixed, the conflict error seemed to go away as well.

@bvssvni
Copy link
Contributor Author

bvssvni commented Mar 8, 2016

The freetype and user_input example is not updated yet.

I'll update Rust nightly and try again.

@bvssvni
Copy link
Contributor Author

bvssvni commented Mar 8, 2016

It works now with rustc 1.9.0-nightly (388ccda45 2016-03-07). Closing.

@bvssvni bvssvni closed this as completed Mar 8, 2016
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

2 participants