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

remove use std::ascii::AsciiExt for Rust 1.23 #411

Merged
merged 1 commit into from
Jan 15, 2018
Merged

remove use std::ascii::AsciiExt for Rust 1.23 #411

merged 1 commit into from
Jan 15, 2018

Conversation

petertseng
Copy link
Member

@petertseng petertseng commented Dec 4, 2017

remove use std::ascii::AsciiExt for rust 1.23

In rust 1.23, the AsciiExt methods are implemented directly on the
concerned types, so attempting to import AsciiExt results in an
unused import.

Rust language PR:
rust-lang/rust#44042

PSA:
https://users.rust-lang.org/t/psa-dealing-with-warning-unused-import-std-ascii-asciiext-in-today-s-nightly/13726

This started warning as an unused import on nightly sometime between
2017-11-02 and 2017-11-09:

https://travis-ci.org/exercism/rust/builds/296391447
https://travis-ci.org/exercism/rust/builds/299770403

This started warning on beta exactly when 1.23.0 became Beta (it was
accepted on 1.22.0):

https://travis-ci.org/exercism/rust/builds/303139434
https://travis-ci.org/exercism/rust/builds/306431846

As 1.23 is now stable and our repo disallows warnings on stable, we will
need this.

@petertseng
Copy link
Member Author

Well, I guess I kind of saw it coming. It doesn't compile on 1.22 but apparently will on 1.23. So when 1.23 becomes stable, since we disallow warnings on stable, our build will break until merging this PR.

Okay, well, we can't merge it until that time, so we shouldn't leave it open.

In the meantime, let's hunt for the change that made this happen.

@petertseng petertseng closed this Dec 4, 2017
@petertseng petertseng deleted the asciiext branch December 4, 2017 15:07
@petertseng
Copy link
Member Author

It's https://users.rust-lang.org/t/psa-dealing-with-warning-unused-import-std-ascii-asciiext-in-today-s-nightly/13726.

It's still the case that you must import a trait to use its methods (I was worried for a moment there), just that there are new inherent methods.

@petertseng
Copy link
Member Author

It's time.

@petertseng petertseng restored the asciiext branch January 15, 2018 00:14
In rust 1.23, the `AsciiExt` methods are implemented directly on the
concerned types, so attempting to import `AsciiExt` results in an
unused import.

Rust language PR:
rust-lang/rust#44042

PSA:
https://users.rust-lang.org/t/psa-dealing-with-warning-unused-import-std-ascii-asciiext-in-today-s-nightly/13726

This started warning as an unused import on nightly sometime between
2017-11-02 and 2017-11-09:

https://travis-ci.org/exercism/rust/builds/296391447
https://travis-ci.org/exercism/rust/builds/299770403

This started warning on beta exactly when 1.23.0 became Beta (it was
accepted on 1.22.0):

https://travis-ci.org/exercism/rust/builds/303139434
https://travis-ci.org/exercism/rust/builds/306431846

As 1.23 is now stable and our repo disallows warnings on stable, we will
need this.
@coriolinus
Copy link
Member

Agreed. These changes look good to me.

@petertseng petertseng reopened this Jan 15, 2018
@petertseng
Copy link
Member Author

I rewrote the commit message but made no other changes.

@petertseng petertseng changed the title DO NOT MERGE: remove use std::ascii::AsciiExt remove use std::ascii::AsciiExt for Rust 1.23 Jan 15, 2018
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