Support future deprecation for rustc_deprecated#51681
Merged
bors merged 1 commit intorust-lang:masterfrom Jun 22, 2018
Merged
Conversation
Contributor
|
r? @eddyb (rust_highfive has picked a reviewer for you, use r? to override) |
1a217b2 to
a6d737c
Compare
a6d737c to
0931094
Compare
Contributor
|
@bors r+ |
Collaborator
|
📌 Commit 0931094 has been approved by |
Collaborator
bors
added a commit
that referenced
this pull request
Jun 22, 2018
…petrochenkov Support future deprecation for rustc_deprecated Follow-up to #49179 to allow `since` parameters to be set to future versions of Rust and correspondingly to not be treated as deprecated until that version. This is required for #30459 to be completed (though we'll need to wait until this hits beta).
Collaborator
|
☀️ Test successful - status-appveyor, status-travis |
Contributor
|
A question of my curiosity: how does a future deprecated method appear in rustdoc? e.g. what will |
Contributor
Author
|
@withoutboats: there are a couple of example screenshots in #49179! The text in them is a little outdated (the wording was changing to "Deprecating in [version]."), but the visuals are the same (I would create another screenshot, but I'm not able to right now). |
Contributor
|
@varkor Thanks! Exactly what I was hoping it looked like :) |
bors
added a commit
that referenced
this pull request
Sep 5, 2018
Add trim_start, trim_end etc.; deprecate trim_left, trim_right, etc. in future Adds the methods: `trim_start`, `trim_end`, `trim_start_matches` and `trim_end_matches`. Deprecates `trim_left`, `trim_right`, `trim_left_matches` and `trim_right_matches` starting from Rust 1.33.0, three versions from when they'll initially be marked as being deprecated, using the future deprecation from #30785 and #51681. Fixes #30459.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #49179 to allow
sinceparameters to be set to future versions of Rust and correspondingly to not be treated as deprecated until that version. This is required for #30459 to be completed (though we'll need to wait until this hits beta).