Skip to content

std: Revert addition of into_ascii_* methods - #32314

Merged
bors merged 1 commit into
rust-lang:masterfrom
alexcrichton:ascii-fun
Mar 19, 2016
Merged

std: Revert addition of into_ascii_* methods#32314
bors merged 1 commit into
rust-lang:masterfrom
alexcrichton:ascii-fun

Conversation

@alexcrichton

Copy link
Copy Markdown
Member

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

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.
@rust-highfive

Copy link
Copy Markdown
Contributor

r? @brson

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton

Copy link
Copy Markdown
MemberAuthor

Nominating for beta inclusion as well to fix the inference regression caused by using the stable methods.

@alexcrichtonalexcrichton added beta-nominated Nominated for backporting to the compiler in the beta channel. T-libs-api [DEPRECATED; DO NOT USE] labels Mar 17, 2016
@alexcrichton

Copy link
Copy Markdown
MemberAuthor

r? @aturon

@aturon

Copy link
Copy Markdown
Contributor

Can you run crater on this change? I see some hits on github code search...

@alexcrichton

Copy link
Copy Markdown
MemberAuthor

Crater reports one regression which seems to be spurious?

@aturon

Copy link
Copy Markdown
Contributor

@bors: r+

@bors

bors commented Mar 18, 2016

Copy link
Copy Markdown
Collaborator

📌 Commit af65d81 has been approved by aturon

@eddyb

Copy link
Copy Markdown
Contributor

@alexcrichton Would it make sense to have a regression test for #32074?

@bors

bors commented Mar 19, 2016

Copy link
Copy Markdown
Collaborator

⌛ Testing commit af65d81 with merge 151be09...

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

Copy link
Copy Markdown
MemberAuthor

@eddyb good point, I'll add that if this bounces or in another PR if it lands

@bors
bors merged commit af65d81 into rust-lang:masterMar 19, 2016
@alexcrichtonalexcrichton added the beta-accepted Accepted for backporting to the compiler in the beta channel. label Mar 24, 2016
@alexcrichton
alexcrichton deleted the ascii-fun branch March 27, 2016 17:48
@alexcrichtonalexcrichton removed the beta-nominated Nominated for backporting to the compiler in the beta channel. label Mar 30, 2016
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

beta-acceptedAccepted for backporting to the compiler in the beta channel.T-libs-api[DEPRECATED; DO NOT USE]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@alexcrichton@rust-highfive@aturon@bors@eddyb@brson