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

std: Stabilize into_* ASCII methods #32020

Merged
merged 1 commit into from
Mar 6, 2016

Conversation

alexcrichton
Copy link
Member

These were intended to land in stable 1.8 but were just waiting for the
implementation PR, so now they're landing. Specifically this PR stabilizes:

  • AsciiExt::into_ascii_uppercase
  • AsciiExt::into_ascii_lowercase
  • AsciiExt for Vec<u8>
  • AsciiExt for String

@alexcrichton
Copy link
Member Author

Nominating for beta backport as it's something we intended to do anyway.

@alexcrichton alexcrichton added the beta-nominated Nominated for backporting to the compiler in the beta channel. label Mar 3, 2016
@alexcrichton
Copy link
Member Author

r? @brson

These were intended to land in stable 1.8 but were just waiting for the
implementation PR, so now they're landing. Specifically this PR stabilizes:

* `AsciiExt::into_ascii_uppercase`
* `AsciiExt::into_ascii_lowercase`
* `AsciiExt for Vec<u8>`
* `AsciiExt for String`
@brson
Copy link
Contributor

brson commented Mar 4, 2016

@bors r+

@bors
Copy link
Contributor

bors commented Mar 4, 2016

📌 Commit 48fd993 has been approved by brson

Manishearth added a commit to Manishearth/rust that referenced this pull request Mar 4, 2016
…r=brson

These were intended to land in stable 1.8 but were just waiting for the
implementation PR, so now they're landing. Specifically this PR stabilizes:

* `AsciiExt::into_ascii_uppercase`
* `AsciiExt::into_ascii_lowercase`
* `AsciiExt for Vec<u8>`
* `AsciiExt for String`
@bors
Copy link
Contributor

bors commented Mar 4, 2016

⌛ Testing commit 48fd993 with merge 2a8243e...

@bors
Copy link
Contributor

bors commented Mar 4, 2016

💔 Test failed - auto-linux-64-opt

@alexcrichton
Copy link
Member Author

@bors: r=brson 6f9afba

bors added a commit that referenced this pull request Mar 6, 2016
These were intended to land in stable 1.8 but were just waiting for the
implementation PR, so now they're landing. Specifically this PR stabilizes:

* `AsciiExt::into_ascii_uppercase`
* `AsciiExt::into_ascii_lowercase`
* `AsciiExt for Vec<u8>`
* `AsciiExt for String`
@bors bors merged commit 6f9afba into rust-lang:master Mar 6, 2016
@SimonSapin
Copy link
Contributor

We may need to revert this. See #32074 and #32076.

@alexcrichton alexcrichton deleted the stabilize-into-ascii branch March 11, 2016 23:12
@alexcrichton
Copy link
Member Author

Removing beta-nominated tag as we're going to revert this.

@alexcrichton alexcrichton removed the beta-nominated Nominated for backporting to the compiler in the beta channel. label Mar 17, 2016
alexcrichton added a commit to alexcrichton/rust that referenced this pull request Mar 17, 2016
The addition of these methods in rust-lang#31335 required adding impls of the trait for
the `String` and `Vec<T>` types. This unfortunately caused a regression (rust-lang#32074)
in type inference for using these methods which the libs team has decided to not
push forward with. These methods were stabilized in rust-lang#32020 which was intended to
get backported to beta, but the backport hasn't happened just yet. This commit
reverts both the addition and stabilization of these methods.

One proposed method of handling this, in rust-lang#32076, was to move the methods to an
extra trait to avoid conflicts with type inference. After some discussion,
however, the libs team concluded that we probably want to reevaluate what we're
doing here, so discussion will continue on the tracking issue, rust-lang#27809.
bors added a commit that referenced this pull request Mar 19, 2016
std: Revert addition of `into_ascii_*` methods

The addition of these methods in #31335 required adding impls of the trait for
the `String` and `Vec<T>` types. This unfortunately caused a regression (#32074)
in type inference for using these methods which the libs team has decided to not
push forward with. These methods were stabilized in #32020 which was intended to
get backported to beta, but the backport hasn't happened just yet. This commit
reverts both the addition and stabilization of these methods.

One proposed method of handling this, in #32076, was to move the methods to an
extra trait to avoid conflicts with type inference. After some discussion,
however, the libs team concluded that we probably want to reevaluate what we're
doing here, so discussion will continue on the tracking issue, #27809.

Closes #32074
alexcrichton added a commit to alexcrichton/rust that referenced this pull request Mar 24, 2016
The addition of these methods in rust-lang#31335 required adding impls of the trait for
the `String` and `Vec<T>` types. This unfortunately caused a regression (rust-lang#32074)
in type inference for using these methods which the libs team has decided to not
push forward with. These methods were stabilized in rust-lang#32020 which was intended to
get backported to beta, but the backport hasn't happened just yet. This commit
reverts both the addition and stabilization of these methods.

One proposed method of handling this, in rust-lang#32076, was to move the methods to an
extra trait to avoid conflicts with type inference. After some discussion,
however, the libs team concluded that we probably want to reevaluate what we're
doing here, so discussion will continue on the tracking issue, rust-lang#27809.

Conflicts:
	src/libstd/ascii.rs
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.

4 participants