We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
pub_restricted, item_like_imports
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
#![feature(pub_restricted, item_like_imports)] mod rw { trait SectionWrite {} // private prelude for submodules mod prelude { pub(super) use super::SectionWrite; } mod foo { use Foo; use rw::prelude::*; impl SectionWrite for Foo {} } } #[derive(Debug)] struct Foo; fn main() { println!("{:?}", Foo); }
warning: unused import, #[warn(unused_imports)] on by default --> test_case.rs:7:18 | 7 | pub(super) use super::SectionWrite; | ^^^^^^^^^^^^^^^^^^^
Using rustc 1.13.0-nightly (ef9786ce0 2016-09-02), which has the item_like_imports feature.
rustc 1.13.0-nightly (ef9786ce0 2016-09-02)
item_like_imports
The text was updated successfully, but these errors were encountered:
@crumblingstatue Thanks for the report -- fixed in #36276.
Sorry, something went wrong.
Auto merge of #36276 - jseyfried:fix_unused, r=nrc
5114f8a
resolve: Fix unused import false positive with `item_like_imports` Fixes #36249. r? @nrc
No branches or pull requests
Using
rustc 1.13.0-nightly (ef9786ce0 2016-09-02)
, which has theitem_like_imports
feature.The text was updated successfully, but these errors were encountered: