- Notifications
You must be signed in to change notification settings - Fork 13.9k
Closed
Labels
T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Description
In Rust 1.22.1, this code compiles:
use std::ascii::AsciiExt; fn main() { "a".eq_ignore_ascii_case("a"); }In Rust 1.23.0.beta.1, it issues a warning:
warning: unused import: `std::ascii::AsciiExt` --> src/main.rs:1:5 | 1 | use std::ascii::AsciiExt; | ^^^^^^^^^^^^^^^^^^^^ | = note: #[warn(unused_imports)] on by default My tidiness kicks in and I remove the trait — no one wants warnings, right?
However, if I remove this trait, my crates will no longer compile on older versions of Rust. I've actually been bitten by this twice now, and one of those times has been released to crates.io. 😞
Metadata
Metadata
Assignees
Labels
T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.