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

circular imports with globs #889

Closed
steveklabnik opened this issue Feb 19, 2015 · 3 comments
Closed

circular imports with globs #889

steveklabnik opened this issue Feb 19, 2015 · 3 comments

Comments

@steveklabnik
Copy link
Member

Issue by jesse99
Sunday Sep 02, 2012 at 20:51 GMT

For earlier discussion, see rust-lang/rust#3352

This issue was labelled with: A-linkage, I-nominated, P-low in the Rust repository


Given that a crate is the unit of compilation it seems both silly and annoying to not be able to have modules within a crate use each other.

If, for some reason, this is not fixed then the error message should be. It's currently "failed to resolve imports" which provides essentially no insight into where the problem is. Identifying a circular import given that does not sound like fun at all, especially in a large project where the circular imports could be indirect.

@retep998
Copy link
Member

This would make implementing winapi significantly easier.

@retep998
Copy link
Member

retep998 commented Sep 7, 2015

This should have been mostly solved by rust-lang/rust#27547.
Is there anything left to do or is this done?

@alexcrichton
Copy link
Member

Indeed, I believe it was solved by that PR, thanks!

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

3 participants