File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
compiler/rustc_index_macros/src Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ mod newtype;
3131/// - `#[max = 0xFFFF_FFFD]`: specifies the max value, which allows niche
3232/// optimizations. The default max value is 0xFFFF_FF00.
3333/// - `#[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.
3437#[ proc_macro]
3538#[ cfg_attr(
3639 feature = "nightly" ,
Original file line number Diff line number Diff line change @@ -2147,6 +2147,7 @@ impl<T: PartialEq> PartialEq for Option<T> {
21472147///
21482148/// Once that's fixed, `Option` should go back to deriving `PartialEq`, as
21492149/// 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.
21502151#[ unstable( feature = "spec_option_partial_eq" , issue = "none" , reason = "exposed only for rustc" ) ]
21512152#[ doc( hidden) ]
21522153pub trait SpecOptionPartialEq : Sized {
You can’t perform that action at this time.
0 commit comments