Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
74bf59e
Documents reference equality by address (#54197)
lucasloisp Oct 2, 2018
68236e0
Cleans trailing whitespace
lucasloisp Oct 2, 2018
ac4945c
Fix #24840: make default for `optimize` independent of `debug` settin…
pnkfelix Oct 4, 2018
82444aa
Add doc comments about safest way to initialize a vector of zeros
mandeep Oct 5, 2018
c802e13
Update minifier version
GuillaumeGomez Oct 6, 2018
ded0bf5
Fix mobile doc display
GuillaumeGomez Oct 6, 2018
9a9894a
Fix tracking issue for Once::is_completed
SimonSapin Oct 7, 2018
b7248d5
Fix internal compiler error on malformed match arm pattern.
dsciarra Oct 6, 2018
91b71f5
Identify borrows captured by trait objects.
davidtwco Oct 5, 2018
72911fb
Update logic to search for casts.
davidtwco Oct 5, 2018
8c01c22
Stabilize the `Option::replace` method
Kerollmops Oct 8, 2018
c232ea1
Bump the `Option::replace` stabilize version to 1.31.0
Kerollmops Oct 8, 2018
f8c1b0c
Add struct field suggestions.
davidtwco Oct 4, 2018
9e49ac0
Change from label to suggestion.
davidtwco Oct 5, 2018
40e20e2
Added text explaining the (new) relative roles of `optimize`+`debug`
pnkfelix Oct 8, 2018
54a3583
it's auto traits that make for automatic implementations
RalfJung Oct 8, 2018
dd0f5e5
Unused result warning: "X which must" ↦ "X that must"
varkor Oct 8, 2018
be88961
Fix handling of #[must_use] on unit and uninhabited types
varkor Oct 8, 2018
3447473
parse_trait_item_ now handles interpolated blocks as function body decls
Oct 5, 2018
1e584bf
Refactor macro comment and add resize with zeros example
mandeep Oct 9, 2018
a0577ee
impl Eq+Hash for TyLayout
RalfJung Oct 9, 2018
e44b05a
Rollup merge of #54755 - lucasloisp:document-reference-address-eq, r=…
pietroalbini Oct 9, 2018
9f9ae6f
Rollup merge of #54811 - pnkfelix:issue-24840-separate-bootstrap-defa…
pietroalbini Oct 9, 2018
3a7093c
Rollup merge of #54831 - davidtwco:issue-52663-struct-field-suggestio…
pietroalbini Oct 9, 2018
b1cc3b8
Rollup merge of #54848 - davidtwco:issue-52663-trait-object, r=nikoma…
pietroalbini Oct 9, 2018
6890621
Rollup merge of #54850 - mcr431:fix-54707-trait-function-from-macro, …
pietroalbini Oct 9, 2018
83cc5a0
Rollup merge of #54860 - mandeep:vec-initialize, r=alexcrichton
pietroalbini Oct 9, 2018
f5869ef
Rollup merge of #54869 - GuillaumeGomez:fix-mobile-docs, r=QuietMisdr…
pietroalbini Oct 9, 2018
5750176
Rollup merge of #54891 - rust-lang:SimonSapin-patch-1, r=nagisa
pietroalbini Oct 9, 2018
e602205
Rollup merge of #54893 - dsciarra:issue-54379, r=pnkfelix
pietroalbini Oct 9, 2018
2f3569b
Rollup merge of #54904 - Kerollmops:stabilize-option-replace, r=Centril
pietroalbini Oct 9, 2018
7fee74b
Rollup merge of #54913 - RalfJung:unwind-safe, r=alexcrichton
pietroalbini Oct 9, 2018
440d313
Rollup merge of #54917 - varkor:unused-which, r=cramertj
pietroalbini Oct 9, 2018
a370112
Rollup merge of #54920 - varkor:must_use-unit, r=estebank
pietroalbini Oct 9, 2018
ec1b889
Rollup merge of #54936 - RalfJung:layout-hash, r=oli-obk
pietroalbini Oct 9, 2018
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Bump the Option::replace stabilize version to 1.31.0
  • Loading branch information
Kerollmops committed Oct 8, 2018
commit c232ea12763b82ae8d4b616df649c23c4961d0fb
2 changes: 1 addition & 1 deletion src/libcore/option.rs
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ impl<T> Option<T> {
/// assert_eq!(old, None);
/// ```
#[inline]
#[stable(feature = "option_replace", since = "1.30.0")]
#[stable(feature = "option_replace", since = "1.31.0")]
pub fn replace(&mut self, value: T) -> Option<T> {
mem::replace(self, Some(value))
}
Expand Down