From 9de2745c95e4855e1f696b5aa40869b93bd35ad9 Mon Sep 17 00:00:00 2001 From: mbartlett21 <29034492+mbartlett21@users.noreply.github.com> Date: Wed, 10 Nov 2021 08:46:35 +1000 Subject: [PATCH] Rename `Option::cloned` gate --- library/core/src/option.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/core/src/option.rs b/library/core/src/option.rs index da3c5f9f5aa..261ff4403c9 100644 --- a/library/core/src/option.rs +++ b/library/core/src/option.rs @@ -1497,7 +1497,7 @@ impl Option<&T> { /// ``` #[must_use = "`self` will be dropped if the result is not used"] #[stable(feature = "rust1", since = "1.0.0")] - #[rustc_const_unstable(feature = "option_const_cloned", issue = "none")] + #[rustc_const_unstable(feature = "const_option_cloned", issue = "none")] pub const fn cloned(self) -> Option where T: ~const Clone { match self { Some(t) => Some(t.clone()), @@ -1521,7 +1521,7 @@ impl Option<&mut T> { /// ``` #[must_use = "`self` will be dropped if the result is not used"] #[stable(since = "1.26.0", feature = "option_ref_mut_cloned")] - #[rustc_const_unstable(feature = "option_const_cloned", issue = "none")] + #[rustc_const_unstable(feature = "const_option_cloned", issue = "none")] pub const fn cloned(self) -> Option where T: ~const Clone { match self { Some(t) => Some(t.clone()),