Uh oh!
There was an error while loading. Please reload this page.
std: Deprecate a number of unstable features - #26914
Conversation
rust-highfive
commented
Jul 9, 2015
r? @huonw (rust_highfive has picked a reviewer for you, use r? to override) |
alexcrichton
commented
Jul 9, 2015
r? @aturon cc @rust-lang/libs |
There was a problem hiding this comment.
This is an unusual comment :-) I don't disagree with the deprecation, but I'd like to add a method to fuse, to query its fused/nonfused state, it would be quite useful.
There was a problem hiding this comment.
Yeah, I agree: the problem here isn't the one-off-ness per se, but rather that this method doesn't seem terribly useful in practice.
d851cce to
136bc80CompareThere was a problem hiding this comment.
This only deprecates partial_min, but not partial_max. Are you sure that’s not an oversight?
nagisa
commented
Jul 10, 2015
I have no complaints about scope of this PR 😊 |
136bc80 to
012f993Comparebors
commented
Jul 24, 2015
☔ The latest upstream changes (presumably #27215) made this pull request unmergeable. Please resolve the merge conflicts. |
012f993 to
19e9951Compare19e9951 to
ef225d4Comparebors
commented
Jul 26, 2015
☔ The latest upstream changes (presumably #26870) made this pull request unmergeable. Please resolve the merge conflicts. |
53e662e to
a1227e8Comparebluss
commented
Jul 26, 2015
I'd like to keep position elem. We want this functionality in some form (I imagine something like |
There was a problem hiding this comment.
cc @pnkfelix -- can you comment on whether we may still want this constant with the upcoming box/allocator system?
aturon
commented
Jul 27, 2015
r=me modulo nits. |
alexcrichton
commented
Jul 27, 2015
@bluss perhaps, yeah, but I'd prefer to keep the scope of this PR to just deprecate items instead of adding and/or renaming new APIs. |
alexcrichton
commented
Jul 27, 2015
@bors: r=aturon a1227e87c96c3e083467b8c5fb373b09c0f38e6c |
bors
commented
Jul 27, 2015
⌛ Testing commit a1227e8 with merge be324ca... |
bors
commented
Jul 27, 2015
💔 Test failed - auto-win-gnu-32-nopt-t |
Many of these have long since reached their stage of being obsolete, so this commit starts the removal process for all of them. The unstable features that were deprecated are: * cmp_partial * fs_time * hash_default * int_slice * iter_min_max * iter_reset_fuse * iter_to_vec * map_in_place * move_from * owned_ascii_ext * page_size * read_and_zero * scan_state * slice_chars * slice_position_elem * subslice_offset
a1227e8 to
b3aa1a6Comparealexcrichton
commented
Jul 27, 2015
@bors: r=aturon On Mon, Jul 27, 2015 at 4:38 PM, bors notifications@github.com wrote:
|
bors
commented
Jul 27, 2015
📌 Commit b3aa1a6 has been approved by |
There was a problem hiding this comment.
I don't see how this is replaced by drain, it may in fact be very useful (I'd use it in itertools if it were stable).
There was a problem hiding this comment.
Yes this isn't replaced by Drain -- in particular IntoIter allows you to return the Vec up and transport it around -- Drain doesn't. Still, this seems fairly marginal for today's std.
There was a problem hiding this comment.
True, but I believe that this was originally added to get back the original allocation, in which case drain suffices for this.
There was a problem hiding this comment.
Not for every use case, for example not for GroupByLazy, which would like to recycle allocations of the IntoIters it uses.
bluss
commented
Jul 27, 2015
@alexcrichton You don't need to rename it, I just suggested not deprecating position_elem yet. |
alexcrichton
commented
Jul 28, 2015
Possibly, yeah, but it's slated to be deprecated soon anyway so it doesn't seem too bad to just go ahead and do so. |
bors
commented
Jul 28, 2015
Many of these have long since reached their stage of being obsolete, so this commit starts the removal process for all of them. The unstable features that were deprecated are: * box_heap * cmp_partial * fs_time * hash_default * int_slice * iter_min_max * iter_reset_fuse * iter_to_vec * map_in_place * move_from * owned_ascii_ext * page_size * read_and_zero * scan_state * slice_chars * slice_position_elem * subslice_offset
bors
commented
Jul 28, 2015
There was a problem hiding this comment.
This is used by coroutine-rs, would be nice to provide this somewhere since it's os specific and non-trivial to obtain.
Many of these have long since reached their stage of being obsolete, so this
commit starts the removal process for all of them. The unstable features that
were deprecated are: