-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Support future deprecation for rustc_deprecated #51681
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Support future deprecation for rustc_deprecated #51681
Conversation
r? @eddyb (rust_highfive has picked a reviewer for you, use r? to override) |
1a217b2
to
a6d737c
Compare
a6d737c
to
0931094
Compare
@bors r+ |
📌 Commit 0931094 has been approved by |
…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).
☀️ Test successful - status-appveyor, status-travis |
A question of my curiosity: how does a future deprecated method appear in rustdoc? e.g. what will |
@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). |
@varkor Thanks! Exactly what I was hoping it looked like :) |
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.
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).