Skip to content

Commit

Permalink
Rollup merge of rust-lang#37517 - Mark-Simulacrum:add-unwrap-default-…
Browse files Browse the repository at this point in the history
…tracking-issue, r=alexcrichton

Add tracking issue number to Result::unwrap_or_default unstable annotation.

Implemented in rust-lang#37299.

Tracking issue: rust-lang#37516.
  • Loading branch information
Jonathan Turner authored Nov 2, 2016
2 parents 27f41b7 + 6720e01 commit 805aecc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ impl<T: Default, E> Result<T, E> {
/// [`FromStr`]: ../../std/str/trait.FromStr.html
/// ```
#[inline]
#[unstable(feature = "result_unwrap_or_default", issue = "0")]
#[unstable(feature = "result_unwrap_or_default", issue = "37516")]
pub fn unwrap_or_default(self) -> T {
match self {
Ok(x) => x,
Expand Down

0 comments on commit 805aecc

Please sign in to comment.