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 all unstable deprecated functionality #27684

Merged
merged 1 commit into from
Aug 14, 2015

Conversation

alexcrichton
Copy link
Member

This commit removes all unstable and deprecated functions in the standard
library. A release was recently cut (1.3) which makes this a good time for some
spring cleaning of the deprecated functions.

@rust-highfive
Copy link
Collaborator

r? @Aatch

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

@alexcrichton
Copy link
Member Author

r? @aturon

A huge amount of stuff ended up getting removed here, and I believe I avoided all stable deprecated items, but a second set of eyes would certainly be useful!

@rust-highfive rust-highfive assigned aturon and unassigned Aatch Aug 12, 2015
@alexcrichton alexcrichton force-pushed the remove-deprecated branch 2 times, most recently from 30bdf5b to ea5e082 Compare August 12, 2015 05:28
@bors
Copy link
Contributor

bors commented Aug 12, 2015

☔ The latest upstream changes (presumably #27615) made this pull request unmergeable. Please resolve the merge conflicts.

@bluss
Copy link
Member

bluss commented Aug 12, 2015

fwiw, looks good to me.

I caught the deprecation of reverse_in_place here, and it says not performant enough to justify inclusion, deprecated in c14d86f. Is this something that has been a problem? We could probably improve it instead (codegen for match on tuple is known to be inferior).

@bors
Copy link
Contributor

bors commented Aug 12, 2015

☔ The latest upstream changes (presumably #27688) made this pull request unmergeable. Please resolve the merge conflicts.

This commit removes all unstable and deprecated functions in the standard
library. A release was recently cut (1.3) which makes this a good time for some
spring cleaning of the deprecated functions.
@aturon
Copy link
Member

aturon commented Aug 13, 2015

OK, I've read over this entire PR. As usual, very satisfying.

My one worry: some of the removals are APIs that were deprecated in 1.3 (currently in beta), whose replacements were also introduced in 1.3. That risks introducing a strong split between the nightly and stable ecosystems.

In general, we want for deprecations to only take effect once a stable release providing their replacement is available -- and the same is even more true for removals. When we haven't done this, e.g. with connect -> join, it's been a hassle for people. We've talked about using the since attribute to not even warn until the relevant release has hit stable.

I'm not sure whether this is a blocker; I feel like we don't have a ton of experience to go from here. Thoughts?

@alexcrichton
Copy link
Member Author

Yeah that's a good point. I like the idea of doing a regular cleaning right after releases are made, so it's probably good to have a formula for something like when we release 1.X we can remove all deprecated items from 1.Y and below (with some relation between X and Y).

Perhaps when say that X == Y? e.g. we don't actually delete anything deprecated in 1.3? That should give a full cycle of deprecation on nightly before deletion I think.

@Gankra
Copy link
Contributor

Gankra commented Aug 13, 2015

👍 to letting deprecations hit stable first

On Thu, Aug 13, 2015 at 9:10 AM, Alex Crichton notifications@github.com
wrote:

Yeah that's a good point. I like the idea of doing a regular cleaning
right after releases are made, so it's probably good to have a formula for
something like when we release 1.X we can remove all deprecated items from
1.Y and below (with some relation between X and Y).

Perhaps when say that X == Y? e.g. we don't actually delete anything
deprecated in 1.3? That should give a full cycle of deprecation on nightly
before deletion I think.


Reply to this email directly or view it on GitHub
#27684 (comment).

@Stebalien
Copy link
Contributor

My one worry: some of the removals are APIs that were deprecated in 1.3 (currently in beta), whose replacements were also introduced in 1.3. That risks introducing a strong split between the nightly and stable ecosystems.

How is this a problem? The APIs are unstable so they can't be used in beta/stable anyways so the ecosystem was already split.

@alexcrichton
Copy link
Member Author

Er, after thinking about this some more:

In general, we want for deprecations to only take effect once a stable release providing their replacement is available -- and the same is even more true for removals.

I totally agree for stable APIs we want this, but it's not as clear to me that we want this same guarantee for unstable APIs. Once an unstable API is deprecated the second you see that is the second you have the replacement available to you. In that sense I don't think it's as pressing that we leave around unstable + deprecated APIs for a long time.

It's certainly nice to still have a grace period as projects tracking nightly update every so often, but a 2-ish releases may be a bit much.

@aturon
Copy link
Member

aturon commented Aug 13, 2015

Oy, yes, as @Stebalien points out I slipped into making a point about stable APIs; for unstable APIs, this is just fine.

@bors: r+

@bors
Copy link
Contributor

bors commented Aug 13, 2015

📌 Commit 8d90d3f has been approved by aturon

bors added a commit that referenced this pull request Aug 13, 2015
This commit removes all unstable and deprecated functions in the standard
library. A release was recently cut (1.3) which makes this a good time for some
spring cleaning of the deprecated functions.
@bors
Copy link
Contributor

bors commented Aug 13, 2015

⌛ Testing commit 8d90d3f with merge 82b8964...

@alexcrichton alexcrichton deleted the remove-deprecated branch August 14, 2015 17:01
Ms2ger added a commit to Ms2ger/servo that referenced this pull request Aug 16, 2015
It has been removed upstream (rust-lang/rust#27684).
bors-servo pushed a commit to servo/servo that referenced this pull request Aug 16, 2015
Stop using [T]::tail.

It has been removed upstream (rust-lang/rust#27684).

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7240)
<!-- Reviewable:end -->
mokus0 added a commit to mokus0/zinc that referenced this pull request Aug 16, 2015
jrmuizel pushed a commit to jrmuizel/gecko-cinnabar that referenced this pull request Jun 12, 2017
… r=nox

It has been removed upstream (rust-lang/rust#27684).

Source-Repo: https://github.com/servo/servo
Source-Revision: 4d7dd66ec9f0a5229a52b3301ac1a38848ebfb4b
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Sep 30, 2019
… r=nox

It has been removed upstream (rust-lang/rust#27684).

Source-Repo: https://github.com/servo/servo
Source-Revision: 4d7dd66ec9f0a5229a52b3301ac1a38848ebfb4b

UltraBlame original commit: 4fb4c524dac38483cbe495c72ff641d99b03c0d6
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 1, 2019
… r=nox

It has been removed upstream (rust-lang/rust#27684).

Source-Repo: https://github.com/servo/servo
Source-Revision: 4d7dd66ec9f0a5229a52b3301ac1a38848ebfb4b

UltraBlame original commit: 4fb4c524dac38483cbe495c72ff641d99b03c0d6
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 1, 2019
… r=nox

It has been removed upstream (rust-lang/rust#27684).

Source-Repo: https://github.com/servo/servo
Source-Revision: 4d7dd66ec9f0a5229a52b3301ac1a38848ebfb4b

UltraBlame original commit: 4fb4c524dac38483cbe495c72ff641d99b03c0d6
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.

8 participants