Skip to content

Commit 9de2745

Browse files
authored
Rename Option::cloned gate
1 parent afdec88 commit 9de2745

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/option.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,7 +1497,7 @@ impl<T: Clone> Option<&T> {
14971497
/// ```
14981498
#[must_use = "`self` will be dropped if the result is not used"]
14991499
#[stable(feature = "rust1", since = "1.0.0")]
1500-
#[rustc_const_unstable(feature = "option_const_cloned", issue = "none")]
1500+
#[rustc_const_unstable(feature = "const_option_cloned", issue = "none")]
15011501
pub const fn cloned(self) -> Option<T> where T: ~const Clone {
15021502
match self {
15031503
Some(t) => Some(t.clone()),
@@ -1521,7 +1521,7 @@ impl<T: Clone> Option<&mut T> {
15211521
/// ```
15221522
#[must_use = "`self` will be dropped if the result is not used"]
15231523
#[stable(since = "1.26.0", feature = "option_ref_mut_cloned")]
1524-
#[rustc_const_unstable(feature = "option_const_cloned", issue = "none")]
1524+
#[rustc_const_unstable(feature = "const_option_cloned", issue = "none")]
15251525
pub const fn cloned(self) -> Option<T> where T: ~const Clone {
15261526
match self {
15271527
Some(t) => Some(t.clone()),

0 commit comments

Comments
 (0)