We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
SpecOptionPartialEq
1 parent 3122db7 commit 3e9d1e4Copy full SHA for 3e9d1e4
library/core/src/option.rs
@@ -2090,6 +2090,12 @@ impl<T: PartialEq> PartialEq for Option<T> {
2090
}
2091
2092
2093
+/// This specialization trait is a workaround for LLVM not currently (2023-01)
2094
+/// being able to optimize this itself, even though Alive confirms that it would
2095
+/// be legal to do so: <https://github.com/llvm/llvm-project/issues/52622>
2096
+///
2097
+/// Once that's fixed, `Option` should go back to deriving `PartialEq`, as
2098
+/// it used to do before <https://github.com/rust-lang/rust/pull/103556>.
2099
#[unstable(feature = "spec_option_partial_eq", issue = "none", reason = "exposed only for rustc")]
2100
#[doc(hidden)]
2101
pub trait SpecOptionPartialEq: Sized {
0 commit comments