Rollup merge of #37517 - Mark-Simulacrum:add-unwrap-default-tracking-issue, r=alexcrichton
Add tracking issue number to Result::unwrap_or_default unstable annotation. Implemented in https://github.com/rust-lang/rust/pull/37299. Tracking issue: https://github.com/rust-lang/rust/issues/37516.
This commit is contained in:
commit
805aecc36a
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user