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

stabilize core::{option, result} #16664

Closed
wants to merge 3 commits into from

Conversation

aturon
Copy link
Member

@aturon aturon commented Aug 22, 2014

Per API meeting

https://github.com/rust-lang/meeting-minutes/blob/master/Meeting-API-review-2014-08-13.md

Changes to core::option

Most of the module is marked as stable or unstable; most of the unstable items are awaiting resolution of conventions issues.

However, a few methods have been deprecated, either due to lack of use or redundancy:

  • take_unwrap, get_ref and get_mut_ref (redundant, and we prefer for this functionality to go through an explicit .unwrap)
  • filtered and while
  • mutate and mutate_or_set
  • collect: this functionality is being moved to a new FromIterator impl.

Changes to core::result

Most of the module is marked as stable or unstable; most of the unstable items are awaiting resolution of conventions issues.

  • collect: this functionality is being moved to a new FromIterator impl.
  • fold_ is deprecated due to lack of use
  • Several methods found in core::option are added here, including iter, as_slice, and variants.

Due to deprecations, this is a:

[breaking-change]

@aturon
Copy link
Member Author

aturon commented Aug 22, 2014

cc @bjz

@@ -594,35 +650,43 @@ impl<A> ExactSize<A> for Item<A> {}
/// assert!(res == Some(vec!(2u, 3u)));
/// ```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This documentation may want to move to the implementation of collect for Option (just to see what's going on)

@brendanzab
Copy link
Member

Looks good to me. 👍

@aturon aturon force-pushed the stabilize-option-result branch from 1b2e9e3 to 02b4659 Compare August 28, 2014 15:32
@aturon
Copy link
Member Author

aturon commented Aug 28, 2014

@alexcrichton BTW, this has PR been updated to address your requests.

I'm going to do a separate, library-wide PR to deal with the new mut and iter conventions.

aturon added 3 commits August 28, 2014 09:12
Per API meeting

  https://github.com/rust-lang/meeting-minutes/blob/master/Meeting-API-review-2014-08-13.md

Most of the module is marked as stable or unstable; most of the unstable
items are awaiting resolution of conventions issues.

However, a few methods have been deprecated, either due to lack of use
or redundancy:

* `take_unwrap`, `get_ref` and `get_mut_ref` (redundant, and we prefer
  for this functionality to go through an explicit .unwrap)
* `filtered` and `while`
* `mutate` and `mutate_or_set`
* `collect`: this functionality is being moved to a new `FromIterator`
  impl.

Due to deprecations, this is a:

[breaking-change]
Per API meeting

  https://github.com/rust-lang/meeting-minutes/blob/master/Meeting-API-review-2014-08-13.md

Most of the module is marked as stable or unstable; most of the unstable
items are awaiting resolution of conventions issues.

* `collect`: this functionality is being moved to a new `FromIterator`
  impl.
* `fold_` is deprecated due to lack of use
* Several methods found in `core::option` are added here, including
  `iter`, `as_slice`, and variants.

Due to deprecations, this is a:

[breaking-change]
@aturon aturon force-pushed the stabilize-option-result branch from 02b4659 to 9a8233d Compare August 28, 2014 16:13
bors added a commit that referenced this pull request Aug 28, 2014
…chton

Per API meeting

  https://github.com/rust-lang/meeting-minutes/blob/master/Meeting-API-review-2014-08-13.md

# Changes to `core::option`

Most of the module is marked as stable or unstable; most of the unstable items are awaiting resolution of conventions issues.

However, a few methods have been deprecated, either due to lack of use or redundancy:

* `take_unwrap`, `get_ref` and `get_mut_ref` (redundant, and we prefer for this functionality to go through an explicit .unwrap)
* `filtered` and `while`
* `mutate` and `mutate_or_set`
* `collect`: this functionality is being moved to a new `FromIterator` impl.

# Changes to `core::result`

Most of the module is marked as stable or unstable; most of the unstable items are awaiting resolution of conventions issues.

* `collect`: this functionality is being moved to a new `FromIterator` impl.
* `fold_` is deprecated due to lack of use
* Several methods found in `core::option` are added here, including `iter`, `as_slice`, and variants.

Due to deprecations, this is a:

[breaking-change]
@bors bors closed this Aug 29, 2014
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.

5 participants