Skip to content

Commit 7d22190

Browse files
committed
Use allow_internal_unstable and add unstable reason
1 parent 0f16267 commit 7d22190

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/option.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2045,13 +2045,13 @@ impl<T: PartialEq> PartialEq for Option<T> {
20452045
}
20462046
}
20472047

2048-
#[unstable(feature = "spec_option_partial_eq", issue = "none")]
2048+
#[unstable(feature = "spec_option_partial_eq", issue = "none", reason = "exposed only for rustc")]
20492049
#[doc(hidden)]
20502050
pub trait SpecOptionPartialEq: Sized {
20512051
fn eq(l: &Option<Self>, other: &Option<Self>) -> bool;
20522052
}
20532053

2054-
#[unstable(feature = "spec_option_partial_eq", issue = "none")]
2054+
#[unstable(feature = "spec_option_partial_eq", issue = "none", reason = "exposed only for rustc")]
20552055
impl<T: PartialEq> SpecOptionPartialEq for T {
20562056
#[inline]
20572057
default fn eq(l: &Option<T>, r: &Option<T>) -> bool {

0 commit comments

Comments
 (0)