Skip to content

Commit d8bda99

Browse files
Rollup merge of rust-lang#119949 - clubby789:spec-newtype-comment, r=nnethercote
Add note on SpecOptionPartialEq to `newtype_index` https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/.60SpecOptionPartialEq.60.20error r? `@nnethercote`
2 parents 9d4f903 + c19b57e commit d8bda99

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/option.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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)]
21522153
pub trait SpecOptionPartialEq: Sized {

0 commit comments

Comments
 (0)