File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed
compiler/rustc_lint_defs/src Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -4489,11 +4489,11 @@ declare_lint! {
44894489 /// on itself), the blanket impl is not considered to hold for `u8`. This will
44904490 /// change in a future release.
44914491 pub COINDUCTIVE_OVERLAP_IN_COHERENCE ,
4492- Warn ,
4492+ Deny ,
44934493 "impls that are not considered to overlap may be considered to \
44944494 overlap in the future",
44954495 @future_incompatible = FutureIncompatibleInfo {
4496- reason: FutureIncompatibilityReason :: FutureReleaseErrorDontReportInDeps ,
4496+ reason: FutureIncompatibilityReason :: FutureReleaseErrorReportInDeps ,
44974497 reference: "issue #114040 <https://github.com/rust-lang/rust/issues/114040>" ,
44984498 } ;
44994499}
Original file line number Diff line number Diff line change @@ -19,3 +19,23 @@ LL | #![deny(coinductive_overlap_in_coherence)]
1919
2020error: aborting due to previous error
2121
22+ Future incompatibility report: Future breakage diagnostic:
23+ error: implementations of `PartialEq<Interval<_>>` for `Interval<_>` will conflict in the future
24+ --> $DIR/warn-when-cycle-is-error-in-coherence.rs:13:1
25+ |
26+ LL | #[derive(PartialEq, Default)]
27+ | --------- the second impl is here
28+ ...
29+ LL | impl<T, Q> PartialEq<Q> for Interval<T>
30+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the first impl is here
31+ |
32+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
33+ = note: for more information, see issue #114040 <https://github.com/rust-lang/rust/issues/114040>
34+ = note: impls that are not considered to overlap may be considered to overlap in the future
35+ = note: `Interval<_>: PartialOrd` may be considered to hold in future releases, causing the impls to overlap
36+ note: the lint level is defined here
37+ --> $DIR/warn-when-cycle-is-error-in-coherence.rs:1:9
38+ |
39+ LL | #![deny(coinductive_overlap_in_coherence)]
40+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
41+
You can’t perform that action at this time.
0 commit comments