-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Stabilize the Option::replace
method
#54904
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
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
r? @Centril |
src/libcore/option.rs
Outdated
@@ -880,7 +878,7 @@ impl<T> Option<T> { | |||
/// assert_eq!(old, None); | |||
/// ``` | |||
#[inline] | |||
#[unstable(feature = "option_replace", issue = "51998")] | |||
#[stable(feature = "option_replace", since = "1.30.0")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1.30.0 seems unlikely? See https://forge.rust-lang.org/index.html for dates.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is unlikely to be merged for Fri Oct 26 2018
? You prefer 1.31.0
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It has to go into beta first ;) i.e. 1.31.0 goes into beta on 2018-10-26.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I will change to 1.31.0
so but how do you know the 1.31.0
beta is set to this date ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ho ! It enters beta when the previous version enter stable ? ok ! :)
r? @Kimundi (Already fcp merged + completed in tracking issue.) |
Do I squash when done ? |
@Kerollmops if you wish; but I think it's fine not to also. |
@bors r=Centril |
📌 Commit c232ea1 has been approved by |
…, r=Centril Stabilize the `Option::replace` method This PR stabilize the `Option::replace` method propose in rust-lang#51998.
…, r=Centril Stabilize the `Option::replace` method This PR stabilize the `Option::replace` method propose in rust-lang#51998.
…, r=Centril Fixes rust-lang#47311. r? @nrc
Rollup of 9 pull requests Successful merges: - #54747 (codegen_llvm: verify that inline assembly operands are scalars) - #54848 (Better Diagnostic for Trait Object Capture) - #54850 (Fix #54707 - parse_trait_item_ now handles interpolated blocks as function body decls) - #54858 (second round of refactorings for universes) - #54862 (Implement RFC 2539: cfg_attr with multiple attributes) - #54869 (Fix mobile docs) - #54870 (Stabilize tool lints) - #54893 (Fix internal compiler error on malformed match arm pattern.) - #54904 (Stabilize the `Option::replace` method) Failed merges: - #54909 ( Add chalk rules related to associated type defs) r? @ghost
Rollup of 9 pull requests Successful merges: - #54747 (codegen_llvm: verify that inline assembly operands are scalars) - #54848 (Better Diagnostic for Trait Object Capture) - #54850 (Fix #54707 - parse_trait_item_ now handles interpolated blocks as function body decls) - #54858 (second round of refactorings for universes) - #54862 (Implement RFC 2539: cfg_attr with multiple attributes) - #54869 (Fix mobile docs) - #54870 (Stabilize tool lints) - #54893 (Fix internal compiler error on malformed match arm pattern.) - #54904 (Stabilize the `Option::replace` method) Failed merges: - #54909 ( Add chalk rules related to associated type defs) r? @ghost
This PR stabilize the
Option::replace
method propose in #51998.