1
Fork 0

Use allow_internal_unstable and add unstable reason

This commit is contained in:
clubby789 2022-11-01 00:11:35 +00:00
parent 20f2d8b841
commit b9a95d8990
20 changed files with 3 additions and 21 deletions

View file

@ -2045,13 +2045,13 @@ impl<T: PartialEq> PartialEq for Option<T> {
}
}
#[unstable(feature = "spec_option_partial_eq", issue = "none")]
#[unstable(feature = "spec_option_partial_eq", issue = "none", reason = "exposed only for rustc")]
#[doc(hidden)]
pub trait SpecOptionPartialEq: Sized {
fn eq(l: &Option<Self>, other: &Option<Self>) -> bool;
}
#[unstable(feature = "spec_option_partial_eq", issue = "none")]
#[unstable(feature = "spec_option_partial_eq", issue = "none", reason = "exposed only for rustc")]
impl<T: PartialEq> SpecOptionPartialEq for T {
#[inline]
default fn eq(l: &Option<T>, r: &Option<T>) -> bool {