Use allow_internal_unstable
and add unstable reason
This commit is contained in:
parent
20f2d8b841
commit
b9a95d8990
20 changed files with 3 additions and 21 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue