Skip to content

Commit 6fd9348

Browse files
author
Ryan van Polen
committed
Updated feature and stable flags
1 parent 7e19eef commit 6fd9348

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

library/core/src/result.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1692,7 +1692,6 @@ impl<T, E> Result<Result<T, E>, E> {
16921692
/// # Examples
16931693
///
16941694
/// ```
1695-
/// #![feature(result_flattening)]
16961695
/// let x: Result<Result<&'static str, u32>, u32> = Ok(Ok("hello"));
16971696
/// assert_eq!(Ok("hello"), x.flatten());
16981697
///
@@ -1712,8 +1711,8 @@ impl<T, E> Result<Result<T, E>, E> {
17121711
/// assert_eq!(Ok("hello"), x.flatten().flatten());
17131712
/// ```
17141713
#[inline]
1715-
#[unstable(feature = "result_flattening", issue = "70142")]
1716-
#[rustc_const_unstable(feature = "result_flattening", issue = "70142")]
1714+
#[stable(feature = "result_flattening", since = "CURRENT_RUSTC_VERSION")]
1715+
#[rustc_const_stable(feature = "result_flattening", since = "CURRENT_RUSTC_VERSION")]
17171716
pub const fn flatten(self) -> Result<T, E> {
17181717
// FIXME(const-hack): could be written with `and_then`
17191718
match self {

0 commit comments

Comments
 (0)