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

Reorder use super::* / super::internal::* #173

Merged
merged 2 commits into from
Dec 20, 2016

Conversation

cuviper
Copy link
Member

@cuviper cuviper commented Dec 3, 2016

Nightly started warning that many use super::internal::* imports under
par_iter were unused -- see rust-lang/rust#38104. It turns out that
all those modules also had use super::*, and par_iter/mod.rs has its
own use internal::*, so apparently this now adds to what the other
modules get.

But we can't just remove those lines, because it doesn't work for older
rustc. Instead we can reorder it so super::internal::* comes first,
and nothing looks unused to the linter.

Nightly started warning that many `use super::internal::*` imports under
`par_iter` were unused -- see rust-lang/rust#38104.  It turns out that
all those modules also had `use super::*`, and `par_iter/mod.rs` has its
own `use internal::*`, so apparently this now adds to what the other
modules get.

But we can't just remove those lines, because it doesn't work for older
rustc.  Instead we can reorder it so `super::internal::*` comes first,
and nothing looks unused to the linter.
@nikomatsakis
Copy link
Member

Ah, I was wondering what was up with those warnings.

@nikomatsakis nikomatsakis merged commit e328910 into rayon-rs:master Dec 20, 2016
@cuviper cuviper deleted the superstar branch December 20, 2016 19:21
schuster added a commit to schuster/rayon that referenced this pull request Dec 20, 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

Successfully merging this pull request may close these issues.

2 participants