diff --git a/core/src/lib.rs b/core/src/lib.rs index 49f89e702558f..02cb02dce1d87 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -165,6 +165,7 @@ #![feature(const_unsafecell_get_mut)] #![feature(const_waker)] #![feature(coverage_attribute)] +#![feature(do_not_recommend)] #![feature(duration_consts_float)] #![feature(internal_impls_macro)] #![feature(ip)] diff --git a/core/src/option.rs b/core/src/option.rs index 1a8fe1e6051ad..d93cb8d10e607 100644 --- a/core/src/option.rs +++ b/core/src/option.rs @@ -2507,6 +2507,7 @@ impl ops::FromResidual for Option { } } +#[diagnostic::do_not_recommend] #[unstable(feature = "try_trait_v2_yeet", issue = "96374")] impl ops::FromResidual> for Option { #[inline] diff --git a/core/src/result.rs b/core/src/result.rs index f8cdcc000c50e..7f278296b7b88 100644 --- a/core/src/result.rs +++ b/core/src/result.rs @@ -1990,7 +1990,7 @@ impl> ops::FromResidual> for Res } } } - +#[diagnostic::do_not_recommend] #[unstable(feature = "try_trait_v2_yeet", issue = "96374")] impl> ops::FromResidual> for Result { #[inline]