]> git.lizzy.rs Git - rust.git/commitdiff
Rename `Option::cloned` gate
authormbartlett21 <29034492+mbartlett21@users.noreply.github.com>
Tue, 9 Nov 2021 22:46:35 +0000 (08:46 +1000)
committerGitHub <noreply@github.com>
Tue, 9 Nov 2021 22:46:35 +0000 (08:46 +1000)
library/core/src/option.rs

index da3c5f9f5aa0a6841af886c70fd2a722ea62d38e..261ff4403c94b60c365a72611e3d2c24c3ec8b75 100644 (file)
@@ -1497,7 +1497,7 @@ impl<T: Clone> 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<T> where T: ~const Clone {
         match self {
             Some(t) => Some(t.clone()),
@@ -1521,7 +1521,7 @@ impl<T: Clone> 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<T> where T: ~const Clone {
         match self {
             Some(t) => Some(t.clone()),