-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Conversation
r? @Aatch (rust_highfive has picked a reviewer for you, use r? to override) |
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! |
30bdf5b
to
ea5e082
Compare
☔ The latest upstream changes (presumably #27615) made this pull request unmergeable. Please resolve the merge conflicts. |
ea5e082
to
58b2a2d
Compare
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). |
☔ The latest upstream changes (presumably #27688) made this pull request unmergeable. Please resolve the merge conflicts. |
58b2a2d
to
aa2fc27
Compare
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.
aa2fc27
to
8d90d3f
Compare
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 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? |
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. |
👍 to letting deprecations hit stable first On Thu, Aug 13, 2015 at 9:10 AM, Alex Crichton notifications@github.com
|
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. |
Er, after thinking about this some more:
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. |
Oy, yes, as @Stebalien points out I slipped into making a point about stable APIs; for unstable APIs, this is just fine. @bors: r+ |
📌 Commit 8d90d3f has been approved by |
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.
⌛ Testing commit 8d90d3f with merge 82b8964... |
It has been removed upstream (rust-lang/rust#27684).
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 -->
… r=nox It has been removed upstream (rust-lang/rust#27684). Source-Repo: https://github.com/servo/servo Source-Revision: 4d7dd66ec9f0a5229a52b3301ac1a38848ebfb4b
… 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
… 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
… 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
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.