File tree 2 files changed +4
-0
lines changed
compiler/rustc_index_macros/src
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ mod newtype;
31
31
/// - `#[max = 0xFFFF_FFFD]`: specifies the max value, which allows niche
32
32
/// optimizations. The default max value is 0xFFFF_FF00.
33
33
/// - `#[gate_rustc_only]`: makes parts of the generated code nightly-only.
34
+ ///
35
+ /// `SpecOptionPartialEq` is specialized by this macro, so using it requires enabling
36
+ /// `#![feature(min_specialization)]` for the crate.
34
37
#[ proc_macro]
35
38
#[ cfg_attr(
36
39
feature = "nightly" ,
Original file line number Diff line number Diff line change @@ -2147,6 +2147,7 @@ impl<T: PartialEq> PartialEq for Option<T> {
2147
2147
///
2148
2148
/// Once that's fixed, `Option` should go back to deriving `PartialEq`, as
2149
2149
/// it used to do before <https://github.com/rust-lang/rust/pull/103556>.
2150
+ /// The comment regarding this trait on the `newtype_index` macro should be removed if this is done.
2150
2151
#[ unstable( feature = "spec_option_partial_eq" , issue = "none" , reason = "exposed only for rustc" ) ]
2151
2152
#[ doc( hidden) ]
2152
2153
pub trait SpecOptionPartialEq : Sized {
You can’t perform that action at this time.
0 commit comments